4 ms·
Curious, so I looked. I figured they fire off tracking events when you click on the color swatches and yes, they do: onclick="javascript:pageTracker._trackPagev
by coderdude 14y ago
Curious, so I looked. I figured they fire off tracking events when you click on the color swatches and yes, they do: onclick="javascript:pageTracker._trackPageview('/labs/flickr');".
I'm assuming you have JS enabled but have analytics domains blocked? Might be a good idea for site owners to start wrapping these pageTracker calls in try/catch statements.
- nwh 14y agoI'm using Ghostery to block the load of the Javascript, and I imagine a few other HN readers do too. It's strange that they never considered that the GA tracking events might fail.
- newishuser 14y agoI'm using Ghostery, It's blocking GA, the site works fine.
- sp332 14y agoI'm using RequestPolicy to block that domain, but the site works fine for me.
- shabble 14y agoRecent versions of Ghostery (and NoScript) both provide 'surrogate scripts' to replace common JS resources that are expected to work by the active page. You can see the noscript[1] ones at about:config (search for noscript.surrogate.*) but I'm not sure where the Ghostery ones live, or if it has specific ones for different trackers, or just a generic handler. [1] GA replacement code appears to be (reformatted): ( function(){ var _0 = function(){ return _0; }; _0.__noSuchMethod__=_0; with (window) urchinTracker=_0, _gaq={ __noSuchMethod__: _0, push:function(f){ if(typeof f=='function') f() }, _link:function(h){ if(h) location.href=h }, _linkByPost:function(){ return true }, _getLinkerUrl:function(u){ return u }, _trackEvent:_0 }, _gat={ __noSuchMethod__:function(){ return _gaq } } } )()