Could we add dummy API's for common tracking libraries?
Currently Ghostery blocks all tracking software which works great in most cases, but there are quite a few websites which depend (i.e. break if it's not present) on Google Analytics. For these sites I have to disable Ghostery which kind of defeats the purpose.
If we would add a simple dummy API to emulate the behaviour it would mean that we could keep blocking analytics on these websites.
Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.
Twitter,
Facebook, or email.
-
Hi Rick,
Thanks for using Ghostery!
Could you send over some examples? -
-
Hi Rick,
Ghostery already provides such dummy APIs (or "surrogate" scripts), but support/capabilities vary by browser.
Which browser do you use? Which websites are you having problems on, and how? -
-
Sure, here's a little proof of concept: http://jsfiddle.net/B4jCk/3/
As you can see, during the pageload there is already a javascript error which I'm catching in this example although that is usually not the case.
But the link is completely broken, with Ghostery disabled you get an alert (as expected) with Ghostery enabled it simply gives an error and doesn't do anything. -
-
My apologies, I should have noted that I am using Google Chrome on OS X (but the behaviour seems the same on Linux)
-
-
Here is our current GA surrogate:
var urchinTracker=function(){},_gaq={push:function(){try {if(arguments[0][0]=='_link')window.location.href=arguments[0][1]}catch(er){}}},_gat={_createTracker:function(){}, _getTracker:function(){return{__noSuchMethod__:function(){},_link:function(o){if(o)location.href=o;},_linkByPost:function(){return true;},_getLinkerUrl:function(o){return o;},_trackEvent:function(){}}}};
_gat._getTracker()._trackEvent is an empty/dummy function.
It looks like we are not injecting fast/early enough on the jsFiddle page, however ... -
Loading Profile...




EMPLOYEE
CHAMP
