Exclude IP Address From Google Analytics

If you have installed Google Analytics on your site, or for a client it is always helpful to exclude IP addresses so the sites stats give an accurate representation of the real traffic.

Note: You will need to have admin rights to the Google Analytics account and know the IP address/s to filter out.


If you are unsure of your IP address, just google “What is my IP address“. The first result returned should be your IP address.

whats_my_ip_address


Then login to your Google Analytics account and select the “Admin” link in the top right.

ga_admin


Then select “All Filters“.

ga_filters


Once you are viewing the filters screen you want to create a new one. Select “New Filter“.

ga_add_filters


When on the new add filter screen you will need to add a name for your filter (e.g. Exclude Home IP). Select the “predefined” radio button. Make sure “Exclude“, “traffic from the IP addresses” and “that are equal to” are selected from the drop down menus.

Add your “IP Address” to exclude.

Then select your website/s that you would like to apply this filter to.

ga_adding_filters


Once this change has been saved you should be able to view the realtime data and the IP address that was added should be excluded.

Jake Bresnehan

A Front End Developer based in Sydney and the creator of Web Design Weekly.

Web Design Weekly keeps developers at the forefront of techniques and trends whilst helping them learn and grow to produce top quality code to make the web a better place for all.

3 Comments

  1. very clear instructions. Thank you

  2. Perfect – thanks for the step-by-step!

  3. Hello,
    This is perfect. I want to know, if i done this, Data under (Audience -> overview) is filtered or not? Is it exclude data which i was visit from that IP?

This post currently has 3 responses. What do you think?

You can use basic HTML when posting code, please turn all < characters into &lt; or > into &gt;
If the code is multi-line, use <pre><code></code></pre>

Leave a Reply

Your email address will not be published. Required fields are marked *

Current day month ye@r *