4 ms·
John Resig talks about a similar problem and a potential solution - http://ejohn.org/blog/fixing-google-analytics-for-ghostery/ http://ejohn.org/blog/fixing-goo
by dangoldin 13y ago
John Resig talks about a similar problem and a potential solution - http://ejohn.org/blog/fixing-google-analytics-for-ghostery/ http://ejohn.org/blog/fixing-google-analytics-for-ghostery/
- Encosia 13y agoThat's essentially what I was doing previously, but the if (_gaq) test was throwing an unusual reference error when Disconnect was installed. I ended up finding that doing an explicit if (typeof _gaq === 'object') was safe (and then wrapped that in a try/catch for good measure).