How to Exclude your Own Visits from Google Analytics

How to Exclude your Own Visits from Google Analytics

One of our users asked for a way to exclude the visits that his employees make to his website from Google Analytics.

In this tutorial, I’m going to show you how to add a filter to exclude visits from Google Analytics based on your IP address.

Step #1. Log in

How to Exclude your Own Visits from Google Analytics

Step #2. Add a filter

Select your site. In my example I’m choosing my personal website:

How to Exclude your Own Visits from Google Analytics
  1. Admin
  2. All filters
  3. Add filter
How to Exclude your Own Visits from Google Analytics
  1. Set a Filter name
  2. In Filter type choose “Predefined”
  3. Select “Exclude”
  4. In Select source or destination choose “traffic from the IP addresses”
  5. Select expression: “that are equal to”
  6. Type your ip address. An easy way to know your IP is by going to the “What is my IP” site.
How to Exclude your Own Visits from Google Analytics
  • In Apply Filter to Views, select “All web site data”
  • Add to move to “Selected views” area:
How to Exclude your Own Visits from Google Analytics
  • Click Save when you’re done.
  • Repeat the process to create a new filter for other IP addresses.

One thing to note is that this solution is better for large offices with a static IP address. If you are working from home, your IP address may change regularly. In that case, try getting a WordPress plugin, Drupal module or Joomla extension that will exclude your administrator visits.

Author

  • Valentin Garcia

    Valentin discovered Joomla in 2010, and since then he has considered it as the best CMS. Valentin has been coding extensions and templates for Joomla for many years and truly enjoys helping people build their own websites with Open Source tools. He lives in San Julián, Jalisco, México.

0 0 votes
Article Rating
Subscribe
Notify of
6 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Søren Van der Schleckel
Søren Van der Schleckel
8 years ago

Hep!
Should I use trailing slash in the ip address to ensure regular expressions are working properly?

htmgarcia
8 years ago

Hi @srenvanderschleckel ,

The example from the post applies to a single ip, you need to use regular expressions to choose a range of ips.
Regards

Michael
Michael
8 years ago

Thank you for the interesting article. I had to perform the steps you describe so often that I created an open source tool that performs them automatically. It reads your IP and creates an exclusion filter for it at the click of a button. Maybe you will find it useful too: [url=https://www.excludemyip.com]https://www.excludemyip.com[/url]. Regards, Michael

Leigh Espy
Leigh Espy
7 years ago

Oh my goodness – this was explained so simply – thank you! I’d been searching for a way to achieve this goal.

Robert S.
Robert S.
3 years ago

But what happens if you change your IP? The ISP resets your IP like every 24 hours. So this won’t work anymore, will it?

clive jackson
clive jackson
2 years ago

I did this and when I go to my site, Analytics still showed me visiting the site. Is this correct that Analytics will show the hit but not register it?

6
0
Would love your thoughts, please comment.x
()
x