Like most of you, I am a stats whore when it comes to my websites. I can spend hours constantly checking various stats, income, referrals, etc, etc. So when you can get better stats, it’s exciting! I found a really good article yesterday on using some advanced features in Google Analytics.
Patrick discusses a few different features, I’m going to cover just a couple of them that I think you guys would be most interested in. Patrick touches these topics:
- Tracking exit clicks, banner clicks and RSS feed subscribers
- How do I track downloads?
- Tracking ecommerce revenue
- How to track Sales
- Tracking 404 errors
I want to cover tracking clicks/RSS feed subscribers, as well as ecommerce stats. If you’re interested in anything else, check out the article
Tracking Clicks And RSS Feed Subscribers
Tracking clicks was a feature I found out about and used when I was developing SmashMyViper.com (now sold). The site had a grid of advertisements (We ended up having 32 different ads on one page), but we wanted to track the number of clicks each one was getting. The ads could not be ad served as we did not want to bog down the server with requests each time, so I utilized Google Analytics to help me out. By adding a simple line of code to each URL I was able to track clicks. For example a regular URL would look like this:
<a href=”http://www.activetuning.com”>ActiveTuning</a>
To utilize click tracking, you would just add a little code:
<a href=”http://www.activetuning.com” onClick=”javascript:urchinTracker (‘/outgoing/activetuning’);“>
On SmashMyViper.com, I gave each ad an ID, so my tracking code was something like this:
<a href=”http://www.activetuning.com” onClick=”javascript:urchinTracker (‘ID22′);“>
Now when I login to Google Analytics, I go to the content category and choose content drilldown. I can see ID22 as one of the line items, and the number of pageviews is the number of clicks it receives:

When you click “/ID22″, you can then see a history of the number of clicks over time the link has received.
I would recommend always adding a “/outgoing” to the link (ex: onClick=”javascript:urchinTracker (‘/outgoing/activetuning’);) because it will better organize everything in Google Analytics.
By using this methodology, you can create a tracking click on your RSS feed button to see how many are clicking on it. Put it in different places, change the icon, and make various changes to test where it is most effective.
Doing eCommerce Analysis With Google Analytics
If you run an eCommerce page, setting it up to track everything with Google Analytics is a must. There is so much valuable information that can be gotten for example:
- Revenue analysis
- Conversion rates
- Referrals
- Visits to purchase
- Time to purchase
- Much much much more
I would post a ton of screenshots for some of the information that it gives me for ActiveTuning, but I have to keep that confidential due to my competitors reading my blog.
In order to track sales, some server side script needs to be added on the order confirmation page that populates a form in this format:
<body onLoad=”javascript:__utmSetTrans()”> <form style=”display:none;” name=”utmform”> <textarea id=”utmtrans”>UTM:T|[order-id]|[affiliation]| [total]|[tax]| [shipping]|[city]|[state]|[country] UTM:I|[order-id]|[sku/code]|[productname]|[category]|[price]| [quantity] </textarea> </form>
I personally used an open source contribution that was built for osCommerce and automates this function, so I can’t really say much about doing it yourself. Google does offer some references and guides here.
If you have any other tips, please share!