public marks

PUBLIC MARKS from julie with tags javascript & analytics

28 January 2008 14:30

Advanced Web Metrics by Brian Clifton » Blog Archive » Tracking links to direct downloads - Automatically

Following on from my previous post Tracking banners and other outgoing links automatically, this GA hack allows you to track downloads automatically. As you may know, tracking download files such as PDF, EXE, DOC and XLS can be achieved quite easily with the modification of the link to include an urchinTracker call to log a virtual pageview. However, as for tracking outgoing links, manually modifying each download link becomes inefficient when there are large numbers of ever changing files to track. You can overcome this by applying the JavaScript code below: