09 Mar 2026

How to Exclude Internal Traffic in Google Analytics 4

Internal visits can significantly distort your analytics data. This guide explains how to define and activate an internal traffic filter in Google Analytics 4 to ensure your reporting reflects real user behaviour only.

Guide
1981-digital-oMe_FjZnHGU-unsplash

Goal: To stop tracking any traffic generated by you, your team, or contractors.

Ideal Outcome: Internal activity no longer skews your Google Analytics 4 metrics.

Prerequisites: Google Analytics 4 must already be installed on your website.

Why this matters: Internal visits can distort your data sometimes dramatically leading to poor decision making. Clean, accurate data gives you a realistic picture of how real users behave.

Where: Inside your Google Analytics 4 property.

When: Right after setting up Google Analytics, and anytime internal traffic may be affecting your reports.

Who: Anyone responsible for analytics, along with internal team members whose visits need to be excluded.

Define Internal Traffic in GA4

  • Log into Google Analytics and click Admin.
1
  • Ensure you’ve selected the correct property, then click Data Streams.
2
  • Choose the website you’re working on.
3
  • Scroll down and select Configure Tag Settings under Google Tag.
4
  • Under Settings, click Show all.
5
  • Select Define internal traffic.
6
  • Click Create to add your internal traffic rule.
7
  • Name the rule Internal traffic and keep the default traffic_type value as internal.
  • Set Match type to IP address equals, then enter your IP address.

If you don’t know your IP, click What’s my IP address, and Google will display it.

9

8

If you need to exclude several team members, click Add condition and repeat the previous step for each IP.

10

You’ve now defined your internal traffic. Next step: activate the filter.

Activate the Internal Traffic Filter in GA4

  • Go back to Admin.
1
  • Under Data Settings, click Data Filters.
2
  • You’ll see a default internal traffic filter. Make sure it’s in Testing mode first.
11
  • If it isn’t, click the kebab menu (three dots) and choose Test filter.
12

Test the Internal Traffic Filter

Filtering in GA4 is permanent, so testing before activation is essential.

  • Go to Reports → Real-time.
Capture
  • Click Add comparison → Select dimension. Search for the Test data filter name and select it.
  • Under Select dimension values, choose Internal Traffic → OK.
  • Check that everything looks right and click Apply.
111

Open a new browser tab, visit your website, then return to the Real-time report. You should see 1 user marked as internal test traffic. This confirms the filter is working.

Activate the Filter

  • Go back to Admin.
1
  • Select Data Filters again.
2
  • Open the kebab menu beside the internal traffic filter and choose Activate filter.
0

Once activated, internal traffic will be excluded from your GA4 data going forward.

View all