The new Google Analytics 4 gives us the possibility to filter internal traffic for cleaner data.
First of all, remember that internal traffic is the traffic that comes from employees who work every day on the website or simply from you who works on your own blog.
If you do not filter this type of data, lot of metrics will be alter and your analysis could be compromised.
In few steps you can simply set up an internal traffic filter in GA4 (read this post if you want to know how to create a new Property in GA4).
Exclude internal traffic
Go into Google Analytics 4 Admin section and select Data Stream under your Property:
Once inside, click on the data stream where you want to apply the internal traffic filter:
At this point, click on Tagging Settings:
And then on Define Internal Traffic:
Let’s clik on Create :
Now, you can enter a series of values to better define your filter:
- Rule name: it’s the name you want to give to your filter;
- Match type: it’s the rule you want to apply and you can choose from several options like equals, begins with, ends with, contains and in range (I do not still find the RegEx option, but I hope it will be a future update);
- IP address: here you have to insert the IP address you want to exclude:
Let’s save the filter.
Now that you have created the filter, you can find it in the GA4 Properties under Data Filter. If you want that it works, you need to activate the filter:
Once the filter is active, you can test it.
Go to the Realtime report, click on Add comparison and start typing “fil” so that the Test data filter name appears:
And select Internal Traffic:
Once the filter is done, let’s apply and test it.
Try browsing some pages of your website and see what values are collected under the selected filter.
I surfed on the “About Me” page, which will now appear (if everything is set correctly) under the filter:
Although the official Google guide tells us that with the new GA4, IP addresses are automatically anonymized, you still have to enter the whole IP address within the filter.
It’s very important to filter the internal traffic. With this filter you have a good quality of your data in your Google Analytics property.
It’s also important to say, that with GA4 now is more easy to use the internal traffic filter. In Universal Analytics the best approach was by creating a Test View to check if all it worked properly after you have created the internal traffic filter. Now you can simply choose one of the following options in Admin > Property > Data Filters and select the status of your filter:
- Testing: you can select this state when you want to test the filter you have created
- Active: to active the internal traffic filter;
- Inactive: simply stop the filter
Very very easy.