Tracking documents and external links in google analytics

Following on from my previous post on tracking documents with google analytics, I’ve updated the javascript to now track external links as well as non-html documents

Installation instructions for the script are the same, all external links will appear as if they were in a directory called ‘exlinks’ on the top level, then they’re divided by their host name and the rest of their url.

So if you have a link to www.iqcontent.com and www.iqcontent.com/blog/ in your site, clicks on these links will be recorded in Google Analytics as:

/exlinks/www.iqcontent.com
/exlinks/www.iqcontent.com/blog

The updated script is available as a free download

It would also be a good idea to add a second profile with just external links in it, and exclude them from the main profile, as if you have a lot of external links this will skew your page view numbers.

Categories Web analytics