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:
- 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.