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

hass’s picture

hass’s picture

Title: Drupal 6 - Outbound links not being tracked due to googlenanalytics.js bug » Outbound links not being tracked due to variable name bug
hass’s picture

A fixed 3.5 has been released.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.