Closed (won't fix)
Project:
Google Analytics
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Feb 2011 at 20:28 UTC
Updated:
13 Mar 2011 at 12:26 UTC
Jump to comment: Most recent file
Comments
Comment #1
hass commentedPatch attached.
Comment #2
hass commentedD6 patch
Comment #3
Tabbycat commentedHi hass,
Thanks for looking at the issue. Taking a quick look at your patch I noticed that you've added "event.preventDefault();" in one path through the code where I think setTimeout isn't being done.. i.e.:
if (ga.trackDomainMode == 2 && isCrossDomain.test(this.href)) {
// Top-level cross domain clicked. document.location is handled by _link internally.
+ event.preventDefault();
_gaq.push(["_link", this.href]);
}
So my guess is that particular path through the code either should be calling setTimeout but isn't, or else by design it should allow the original event to still occur!
Comment #4
izmeez commentedsubscribing
Comment #5
jsquyres commentedsubscribing
Comment #6
hass commentedAs we are not able to click a link programatically or at least I don't know how and many docs around the net say it is not possible - and I do not like to rebild a browser in javascript to be able to support custom javascript click cases - I keep it for now with the roled back patch. Maybe somedays we found a solution. Until than we may theoretically lose a very few hits as in past :-(