Hi all,
I love this module! It's quite nice and I sincerely appreciate all the hard work that's gone into it!
However, I do wish to report an issue where outbound link tracking, i.e. clicking a link that takes you to another website, isn't being triggered, even though I have outbound link tracking enabled. analytics.google.com indicates my site is successfully reporting tracking.
So after doing some debugging, I've nailed down the issue:
On line 40 of googleanalytics.js:
else if (ga.trackOutbound && this.href.match(/^\w+:\/\//i)) {
The problem is that the variable ga.trackOutbound does not exist!
The ga object contains a member called trackOutgoing, so after i changed the code to:
else if (ga.trackOutgoing && this.href.match(/^\w+:\/\//i)) {
the tracking beacons began to be sent out successfully when I clicked on a link that took me away from the current website.
So this issue needs to be resolved.
FYI that I was using https://chrome.google.com/webstore/detail/google-analytics-debugger/jnkm... to help me test to confirm tracking beacons were not being sent out. If you don't use this already, its a handy tool!
Comments
Comment #1
hass CreditAttribution: hass commentedTHX!
http://drupalcode.org/project/google_analytics.git/commit/c2a1083
http://drupalcode.org/project/google_analytics.git/commit/7288f09
Comment #2
hass CreditAttribution: hass commentedComment #3
hass CreditAttribution: hass commentedA fixed 3.5 has been released.