This UserScript checks each inline script embedded in a web page, whether a Google Analytics Tracker is constructed therein. If that is the case, it surgically 😉 inserts an Analytics-API call to the _anonymizeIp() function, thus requesting the masquerade of the IP.
New: As an experimental feature you can also enable the handling of asynchronous trackers. A call to _anonymizeIp() is pushed into the _gaq command queue in these cases.
You may consider it one step in direction of an alternative to the Google Analytics Opt-Out Addons available for other major browsers. …
You may turn on or off features or set options in the config section of the script. This section is located between [user configuration] / [/user configuration] markers.
This script has not been extensively tested yet! (I use to block analytics via Opera's urlfilter feature, anyways.) 😉
Version 1.11 [2010-06-01]
- Support being managed by ”UJS Manager“ Opera-Unite App.
Version 1.10 [2010-06-01]
- Experimental asynchronous tracker (_gaq) support implemented. Turn feature on setting featureGAQmaskip to true in config section.
Version 1.00 [2010-05-26]
- Initial version.