0x0Lab Blog Just another damn blog


How to stop Google Analytics

Posted by cirrus

Yes I know google owns us, yes I know we are using analytics as well.

What you need:
- a web server
- place the two files in this file in the root of the web server
- edit your hosts file and add this entry (where xxx.xxx.xxx.xxx is the IP of your web server):
xxx.xxx.xxx.xxx www.google-analytics.com ssl.google-analytics.com

Now every time you visit an analytics-enabled page, the two files from your web server will be included, and all javascript will be executed properly, but google will not track you.

Filed under: General 3 Comments