Block Google Analytics Cookies to Stop Staff Contaminating your Data

This is post is now quite old and the the information it contains may be out of date or innacurate.

If you find any errors or have any suggestions to update the information please let us know or create a pull request on GitHub

Many webmasters use Google Analytics to track their web traffic. This is a good idea and can be really useful in helping you to optimise your site and maximise your conversions.

However if your staff are constantly browsing your site, they will totally contaminate the data.

It is easy to block this though. All you need to do is add the following line to your HOSTS file


# [Google Inc]
127.0.0.1 www.google-analytics.com

Finding Your HOSTS file The hosts file is located in different locations in different operating systems and even in different Windows versions:


Tags: edmondscommerce