To exclude all traffic that is generated by you, or your employees/contractors
Ideal outcome
Your internal traffic will not affect your Google Analytics’ metrics
Why it matters
Your internal traffic can seriously skew your metrics to the point of getting you to make wrong decisions. You want to keep your data clean and as accurate as possible
Before you start
Google Analytics needs to be set up on your website. If you haven’t done so, follow SOP 163 instead
Key steps
28 steps
What is inside
30 headings
1Define internal traffic in Google Analytics 412
Login to your Google Analytics account Click “Admin”.
Make sure you’ve selected the correct property (website) and select “Data Streams”.
Select the website that you want to implement Google Analytics 4.
At the bottom of the page, click “Configure Tag Settings” under Google Tag.
Under Settings, click “Show all”.
Click “Define internal traffic”.
Click “Create” to define the internal traffic rules.
Change the Rule name to “Internal traffic” and leave the default traffic_type value to internal.
Set the Match type to “IP address equals” and set the value to your IP address.
If you don’t know what’s your IP address, click “What’s my IP address”, and Google will show your current IP address.
If you need to exclude multiple IP addresses, such as excluding traffic from your co-workers or other devices, then click “Add condition” and repeat step 9.
You have now defined the internal traffic in Google Analytics 4, go ahead and create a filter to exclude this internal traffic.
2Activating internal traffic filter in Google Analytics 416
Login to your Google Analytics account.
Click “Admin”.
Click “Data Filters” under Data Settings.
You should see a filter for internal traffic. This is the default filter that is created when you create a Google Analytics 4 property. Make sure it is in testing mode.
If it’s not in testing mode, click on the 3 dot “kebab menu” and select “Test filter”.
Now, we need to test whether the internal traffic filter is working. If it is, we will activate it.
Head to Reports Real-time.
Click “Add comparison” and then “Select dimension”. Search for the Test data filter name then select it.
Next, click on “Select dimension values”, select “Internal Traffic”, and click OK.
Make sure the test filter is correct, then click “Apply”.
Now open a new tab in your browser and visit your website.
Then, head back to the Google Analytics 4 Real-time report. You should see 1 user in the test data filter. If you see this data, it means the internal traffic filter is working.
Head to admin again by clicking “Admin”.
Click “Data Filters” under Data Settings.
Click the “kebab menu” and select “Activate filter”.
Once it’s active, you will have successfully excluded internal traffic from Google Analytics 4.