How to Create an IP Address Filter in Google Analytics

Would you like to filter out your own traffic in Google Analytics? There are several methods for doing so.

One of them is to create an IP address filter to prevent internal traffic from affecting your data. But you’ll need a static IP for it to work and it’s not the most reliable method of filtering your traffic.

So, is there a better way of screening out your own traffic and get accurate stats?

In this guide, we’ll show you how to use an IP address filter to exclude internal traffic from Google Analytics and guide you through a much easier alternative.

MonsterInsights is the best WordPress Analytics plugin. Get it for free!

Let’s start with…

Why Set Up IP Address Filtering

Google Analytics is a powerful tool that you can use to track how people interact with your website. That said, Analytics will also track your internal traffic in its reports if you don’t exclude it.

This would mean that your Google Analytics reports will contain both internal and external visitors to your website. As a result, you won’t get an accurate picture of your users and it would become difficult to discern your customers’ traffic from the data.

You can stop Google Analytics from tracking your internal visits by setting up IP address filters in Google Analytics.

But there’s a catch!

Issues with IP Address Filters

IP address filtering is only applicable if you’re using a static IP address, an address that doesn’t change. A static IP address is normally used if external devices need to know your IP address so they can whitelist yours for security purposes.

Since most regular users do not need to whitelist their own IP, they use dynamic IP addresses instead, which changes over time. So, even if you exclude one IP address, your IP will change and Analytics will still track you.

Plus, your IP address doesn’t travel with you, so if you connect to your site using another wireless network, a static IP address filter wouldn’t work. Your activity would still be tracked and counted by Google Analytics.

So, is there a simpler way of excluding your internal traffic?

An Alternative Method to IP Address Filtering

An easier way to filter out your own visits from tracking is with MonsterInsights. It’s the best Google Analytics plugin for WordPress.

The plugin makes it super easy to use Google Analytics. You can add Google Analytics to your site using the plugin without editing code or hiring a developer.

monsterinsights best google analytics plugin for wordpress

With MonsterInsights, you can easily filter out your own visits from tracking when you’re logged into your site. All you need to do is to specify user roles you’d like to stop Google Analytics from tracking.

This method is far more reliable as it doesn’t rely on your IP address. So, even if your IP address changes for some reason or you’re connected to another network, you won’t have to worry about tracking your own movements in Analytics.

To filter out user roles from tracking, you’ll first need to download and install MonsterInsights.

After that, go to your WordPress admin area, and then navigate to Insights » Settings. Now click on the Advanced tab on the top and scroll down to Permissions.

Next, specify user roles you’d like to stop tracking under the Exclude These User Roles From Tracking and click Save Changes.

For more detailed instructions, you can read our guide on how to stop Google Analytics from tracking logged in users in WordPress.

But if you’d rather create a static IP Address Filter, you can continue reading below.

How to Create an IP Address Filter in Google Analytics

To create an IP address filter, you’ll need to know the public IP address you’re using. The easy way to find your IP address is by searching what is my IP address in Google.

Once you found it, you can create a filter for your website in Google Analytics.

First, log in to your Google Analytics account, and select the website you’d like to create a filter for.

click on google analytics view

Then, click Admin in the left taskbar.

click admin

In the account column, click All Filters.

click all filters

Then, click +Add Filter.

click add filter

Let’s enter the filter name, Internal Traffic Filter.

exclude internal traffic from google analytics

Now leave the Filter Type as Predefined. Select Exclude from the Select filter type dropdown menu.

In Select source or destination, select traffic from the IP addresses.

In the next dropdown menu, you can choose that are equal to.

Enter your IP address in the field below.

In the Apply Filter to Views section, you’ll find Available Views. Select All Website Data and then click the Add button on the right side. You’ll now see that All Web Site data is being added to Selected Views.

Now click Save.

That’s it!

You’ve successfully created a filter to prevent internal traffic from affecting your Google Analytics data.

We hope you liked our article on how to create an IP address filter in Google Analytics. You might also want to read our post on why your business needs Google Analytics.

Please follow us on Twitter and Facebook for more free tutorials.

Want to Try MonsterInsights for Free?

Enter the URL of Your WordPress website to install MonsterInsights Lite.


  1. Hi. Do I need to install Monster Insights in a device I am using to visit my website in order to stop Analytics counting my visits?

    1. Hi Yurii,
      Thanks for visiting our blog! If you’re a MonsterInsights user and it’s already installed on your site, sign into WordPress on your device. Then MonsterInsights will see you’re an admin of your site and filter out your visit from the device, too.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.