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
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[1].
- 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.
About the author
ValentÃn creates beautiful designs from amongst the tequila plants of Jalisco, Mexico. You can see ValentÃn's design work all over this site and you can often find him helping members in our support forum.