You need to block the domain completely using a privacy tool plug-in for your browser.
You need to block the domain completely using a privacy tool plug-in for your browser.
According to Google:
> This add-on instructs the Google Analytics JavaScript (ga.js, analytics.js, and dc.js) running on websites to prohibit their information from being used by Google Analytics. Using the Google Analytics opt-out plug-in will not prevent site owners from using other tools to measure site analytics.
https://support.google.com/analytics/answer/181881?hl=en
I've heard that the reason it sets a variable rather than blocking the script is to avoid breaking websites that do custom tracking.
Also note that by singling out Google Analytics, it's possible that the data might be collected and used by other Google tools, just not GA. Depends on how much mental gymnastics they are willing to do.
Of course, the best thing would be someone just looking at the actual javascript and seeing what it does.
> when your data is collected "Google" gets it, processes it and then pushes the refined data to "Google Analytics".
My set up is dnsmasq, which can issue DNS rules based upon the servers /etc/hosts file, and then Someone Who Cares hosts file[1] which has trackers and many other unwanted web nasties added to the loopback address.
And as its just hosts files, the thing is trivial to fully automate so once a week I pull the latest list of banned domains.
There are also other services like Someone Who Cares, some tailored more specifically towards Windows and some tailored more specifically to blocking ads, or malware, etc.