antisol / Fake Google Analytics

Published:

Version: 0.0.2+42f5634 updated

Summary: Emulate Google Analytics so that poorly-written websites work.

Copyright: 2017, antisol (https://openuserjs.org/users/antisol)

License: BSD-3-Clause

Some (poorly written) websites will fail to function correctly if you block google analytics. This userscript emulates google analytics in order to make these sites work again.

Note that the default rule is for this script to run on ALL URLs.

Note that this script does not work in greasemonkey 4+ due to incompatible changes, use Tampermonkey or Violentmonkey instead.

Technical info: websites fail because the _gaq object does not exist - the script stops executing with a "_gaq is not defined" error. This script creates a _gaq object and a push() function which does nothing more than log these actions to the console.

Rating: 0