Index: googleanalytics.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/google_analytics/googleanalytics.js,v retrieving revision 1.9.2.8 diff -u -r1.9.2.8 googleanalytics.js --- googleanalytics.js 5 Feb 2011 19:53:32 -0000 1.9.2.8 +++ googleanalytics.js 18 Feb 2011 18:54:33 -0000 @@ -26,7 +26,6 @@ else if (isInternalSpecial.test(this.href)) { // Keep the internal URL for Google Analytics website overlay intact. _gaq.push(["_trackPageview", this.href.replace(isInternal, '')]); - setTimeout('document.location = "' + this.href + '"', 100); } } else { @@ -39,19 +38,10 @@ // Track all external links as page views after URL cleanup. // Currently required, if click should be tracked as goal. _gaq.push(["_trackPageview", '/outbound/' + this.href.replace(/^(https?|ftp|news|nntp|telnet|irc|ssh|sftp|webcal):\/\//i, '').split('/').join('--')]); - setTimeout('document.location = "' + this.href + '"', 100); } else { // External link clicked. _gaq.push(["_trackEvent", "Outbound links", "Click", this.href]); - - // First, delay the outbound click by a fraction of a second. - // This delay will hardly be noticeable by the user, but it will provide the - // browser more time load the tracking code. Without this method, it's possible - // that a user can click on the outbound link before the tracking code loads, - // in which case the event will not be recorded. - // See http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55527 - setTimeout('document.location = "' + this.href + '"', 100); } } }