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
- Go to Google Analytics:
- Sign in.
- Click “Google Analytics”.

Step #2. Add a filter
Select your site. In my example I’m choosing my personal website:

- Admin
- All filters
- Add filter

- Set a Filter name
- In Filter type choose “Predefined”
- Select “Exclude”
- In Select source or destination choose “traffic from the IP addresses”
- Select expression: “that are equal to”
- Type your ip address. An easy way to know your IP is by going to the “What is my IP” site.

- In Apply Filter to Views, select “All web site data”
- Add to move to “Selected views” area:

- 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.
Hep!
Should I use trailing slash in the ip address to ensure regular expressions are working properly?
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
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
Oh my goodness – this was explained so simply – thank you! I’d been searching for a way to achieve this goal.
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?
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?