How To Block Google Analytics

Google analytics is a free tracking tool for webmasters. It keeps track of visitor movements and clicks on the webmasters site. If you don’t like your movements and clicks to be analyzed in detail follow the instructions below.

These instructions provide the step-by-step procedure for adding a simple line of script to a file named “Hosts. In PCs with Windows, the following steps should be followed in order to modify the file and block Google Analytics:

127.0.0.1 google-analytics.com
Here is how, for Windows users: –>

  1. Go to the Start menu
  2. click Run
  3. Type Notepad C:\Windows\System32\Drivers\Etc\Hosts
  4. Hit the Enter key
  5. Move the Curser to the end of the file
  6. Add “127.0.0.1 google-analytics.com” to the end of the file.
  7. Save the file and exit Notepad
    1. Pull down the file menu, click on Save
    2. Pull down the file menu, click on Exit
  8. Shutdown and restart the computer

You can omit the www to catch all current and future subdomains and add the following line to your hosts file:

127.0.0.1 google-analytics.com

The Hosts file is located in different locations in different operating systems and even in different Windows versions; please see Hosts file in Wikipedia.

Advertisements