/**************************************************** Author: Brian J Clifton Url: http://www.advanced-web-metrics.com/scripts This script is free to use as long as this info is left in Combined script for tracking external links, file downloads and mailto links All scripts presented have been tested and validated by the author and are believed to be correct as of the date of publication or posting. The Google Analytics software on which they depend is subject to change, however; and therefore no warranty is expressed or implied that they will work as described in the future. Always check the most current Google Analytics documentation. Thanks to Nick Mikailovski (Google) for intitial discussions & Holger Tempel from webalytics.de for pointing out the original flaw of doing this in IE. ****************************************************/ // Only links written to the page (already in the DOM) will be tagged // This version is for ga.js (last updated Jan 15th 2009) function addLinkerEvents() { var as = document.getElementsByTagName("a"); var extTrack = ["dtu.dk"]; // List of local sites that should not be treated as an outbound link. Include at least your own domain here var extDoc = [".doc",".xls",".exe",".zip",".pdf",".js",".docx"]; //List of file extensions on your site. Add/edit as you require /*If you edit no further below this line, Top Content will report as follows: /external_links/url-of-external-site /downloads/filename /mailto/email-address-clicked */ for(var i=0; i -1 || tmp.indexOf('_trackPageview') > -1) continue; } // Tracking outbound links off site - not the GATC for (var j=0; j