#877754 by retrodans: Lots of external clicks in GA, but no detail
authorhass
Sun, 19 Sep 2010 11:40:46 +0000 (11:40 +0000)
committerhass
Sun, 19 Sep 2010 11:40:46 +0000 (11:40 +0000)
googleanalytics.js

index ef7132c..42b0e72 100644 (file)
@@ -46,7 +46,7 @@ Drupal.gaTrackerAttach = function(context) {
             pageTracker._trackEvent("Mails", "Click", this.href.substring(7));
           }
         }
-        else if (ga.trackOutgoing) {
+        else if (ga.trackOutgoing && this.href) {
           // External link clicked. Clean and track the URL.
           if (ga.LegacyVersion) {
             urchinTracker('/outgoing/' + this.href.replace(/^(https?|ftp|news|nntp|telnet|irc|ssh|sftp|webcal):\/\//i, '').split('/').join('--'));