Analytics and Search Marketing Tips
By default Google Analytics does not track file downloads, email, telephone or other outbound link clicks automatically. We developed dynamic link tracking code a couple years ago to address this and due to the popularity, we revisit it from time to time as the Google Analytics platform evolves.
The latest evolution is Universal Analytics and we have updated the code we provided in our previous ‘How to Track Downloads & Outbound Links in Google Analytics’ blog post to use the new Universal Analytics syntax. The recent version of the tracking code includes an additional feature that leverages the NEW hit callback functionality.
If you are not yet familiar with Google’s Universal Analytics, we encourage you to read a brief case study, ‘Yellow Pages Group New Zealand Upgrades to Universal Analytics‘, about one of our Google Analytics Premium clients who is utilizing Universal Analytics. The post outlines the benefits of the new platform, as well as, how we leverage and extended Universal Analytics to meet their unique business needs.
The code can be easily modified to suit your needs. We recommend placing the code in its own .js file. This script automates the following:
In addition, the code takes advantage of a new Google Universal Analytics callback feature to determine when the hit request finishes sending data. This is especially useful in cases where the link does not open a new window, since the hit request needs time to finish before taking the user to their destination. This eliminates the requirement of putting a timeout in place to delay the click longer than it needs to be delayed (or quicker than it should on high latency connections).
The script sets download, email and tel link clicks as interaction events while the external site clicks are non-interaction, which can be adjusted as needed.
Once you have implemented the new tracking code you will be presented with well organized event data around file downloads, external link, email link, and telephone link clicks. These reports are especially useful to determine the effectiveness of your file downloads and various links.
If you would like to see the most popular downloads, you can do so by drilling down into the event category and selecting event label as the primary dimension. Here is a download report example:
Let us know if you have any questions about this new evolution of the outbound link and download file tracking code, or if you want to know more about Google Universal Analytics in general.
Share this Post
Ryan is a Google Analytics Consultant at Blast Analytics & Marketing. With a variety of skills under his belt he spends his days assisting clients with all of their Google Analytics needs. Fueled by music, he relishes a good challenge and is driven to learn.
Add Ryan to your circles on Google+ Ryan Chase has written 4 posts on the Web Analytics Blog.
Digital Analytics Blog
We're here to help with tips and insight on the following topics:
Optimize your website and marketing campaigns