How To Exclude Your IP On Google Analytics

If your site is just starting out, likely you aren’t swamped with internet traffic just yet. So you don’t want to track your own behavior on your site because that would skew your data. You want to see how your site preforms with unbiased, unique users.

You want to block traffic internal to your organization. That way you can focus on users outside of your organization. This can be by setting up a internal traffic filter in Google Analytics. We need to input into Google Analytics all the IP addresses used by yourself and employees or partners working on your site.

The first half of this article is step by step how to block internal IP addresses on Google Analytics 4. The second half of this article is for Universal Analytics.

Step By Step How to Block Internal IP Addresses Using Google Analytics 4

Step 1. Login to Google Analytics

Step 2. On the left column toolbar, all the way at the bottom, click admin.

Step 3 (GA4). If you use the new Google Analytics 4, you must select Data Settings then Data Filters under Property. Selecting All Filters with GA4 won’t work.

Step 4 (GA4). Once you click Data Filters then in the top left click Create Filter.

Note the filter in the picture that already exists. This is what our new filter will look like when we are done.

Step 5 (GA4). Google Analytics will prompt you which type of traffic you are trying to filter. Select Internal Traffic.

Name your filter something that makes sense like “Internal Traffic Filter” or “Block Internal IPs.”

Then for filter operations select Exclude.

You will now notice that GA4 filter according to parameters. The parameter name “traffic_type” is correct. Now we need to set the Parameter value “internal” to equal our IP addresses.

How To Define Internal Traffic Parameter

Close Create data filter window. Then open the Data Streams.

Select your web property. You will see a page that looks like this.

At the very bottom click More Tagging Settings. Then, one button from the bottom, select Define Internal Traffic.

Fill out this page. You can find your public IP address by Googling it. Your internal traffic parameter should be good to go!

Step 5 (GA4) Continued. Now navigate back to Data Settings -> Data Filters -> Create Filter -> Internal Traffic Filter. Fill out the information like we did before. Now the internal traffic_type parameter is good to go.

Leave the Filter State at Testing. This will active the filter, but just in case anything went wrong with the filter, the data will not be completely destroyed.

Now click create. We’ve successfully set up a internal traffic filter in Google Analytics 4!

Step By Step How to Block Internal IP Addresses Using Universal Analytics

Step 1. Login to Google Analytics

Step 2. On the left column toolbar, all the way at the bottom, click admin.

Step 3 (UA). If you use UA (Universal Analytics), you can either opt to create a account-wide filter or a filter just for the site. See below the red arrows.

Step 4 (UA). Click the top left button +ADD FILTER.

Step 5 (UA). Select Create new Filter. Name your new filter something that makes sense, like “Internal Traffic Filter” or “Block Internal IPs.” Use the Predefined filter type. Select from the drop downs Exclude Traffic from the IP addresses that are equal to. Then type in the relevant IP addresses. You can find your public IP address by Googling it.

Step 6 (UA). You should now see your filter.

Notice when you observe Real Time traffic if your numbers go down. Or that they do not track you in the case that you are the only one on the site.

Step 6 (GA4). Your new internal traffic filter should look like this.

Notice when you observe Real Time traffic if your numbers go down. Or that they do not track you in the case that you are the only one on the site.

Enjoy more refined data for your site!

Thank you sincerely for reading! My name is Evan River Welch. I’m a digital marketing learner with Simplilearn, a professional skills bootcamp provider. Feel welcome to write any comments that popped up for you. And do not hesitate to contact me!

Leave a Comment

Your email address will not be published. Required fields are marked *