When setting up my new site with Google Analytics, I wanted to exclude internal traffic. It is different with the new GA version and below I will go through the steps to complete this task.
IP Filter Setup in Google Analytics 4
Before starting on the steps listed below, you will need your IP address in order to proceed. I recommend googling for this information, Google will display it at the top of the search results page.
- Go to the Admin, then Data Streams of your GA4 property.
- Select the data stream that you want the filter applied to.
- Scroll to the bottom to More Tagging Settings, then to Define Internal Traffic. Click Create.
- Provide a Rule name, like home office, etc., set traffic_type value to internal, then add the conditions for the IP addresses. I used “IP address equals” under the Match type and pasted my IP address in the value.
- Add as many IP addresses as needed. Once complete, click save.
Set up Filter for Internal Traffic
Now that the IP addresses have been defined, you can now set up the filter to exclude them from the reporting.
- Go to the Admin, then Data Settings, then Data Filters of your GA4 property. Click Create Filter.
- Provide the following details: Data Filter Name and Filter Operation (for this purpose I used Exclude)
- Under Filter State, you can select from the following options: Testing, Active and Inactive
- Once you’ve tested the filter, you can activate it.
What tips or tricks have you learned with the new Google Analytics version? Please comment below or send me a note here.