A Great Tip When Using Google Analytics
Tracking downloads on your website is a fairly easy task, all thanks to Google Analytics. Many goals created by webmasters don’t actually entail visiting a web page, and it’s important to remember that we need to track and validate every form of user conversion to be successful in our Analytics campaign.
Because download links (links to files ending in .pdf, .psd, .xls, etc) don’t actually load any HTML when the user is directed to them, we must use the following Javascript code to push the data to Google.
<a href="http://www.example.com/files/map.pdf"
onClick="javascript: _gaq.push(['_trackPageview', '/downloads/map']);">
That’s it!
Great quick post Allen! GA is awesome
Thanks for the tips, This is very useful to me.