How do I set up internal traffic filters in GA4?
Applies to: Google Analytics 4 (GA4)
Last updated: May 2025
Problem
You want to exclude traffic from internal users—such as employees, developers, or office IP addresses—from your GA4 reports to keep your data accurate.
Solution
GA4 handles internal traffic using traffic_type parameters and data filters. You must first define internal traffic (by IP address) and then create a filter to exclude it from reports.
Step-by-Step Guide
Part 1: Define Internal Traffic
- Go to https://analytics.google.com
- Select your GA4 property
- Click Admin > Data Streams, and select your Web stream
- Scroll to the bottom and click Configure tag settings
- Click Show all, then select Define internal traffic
- Click Create
- Rule name: e.g., “Office IP”
- Traffic type value:
internal - Match type: IP address equals / begins with / regex
- IP address: Enter your public IP address (e.g.,
203.0.113.0)
- Save the rule
You can create multiple rules for different office locations or VPNs.
Part 2: Create a Data Filter to Exclude Internal Traffic
- In Admin, go to Data Settings > Data Filters
- Click Create Filter
- Set the following:
- Filter name: e.g., “Exclude Internal”
- Filter type: Internal traffic
- Traffic_type parameter:
internal - Filter operation: Choose one:
- Testing: Apply the filter but keep data visible (for testing)
- Active: Fully apply the filter to exclude data
- Inactive: Filter is defined but not applied yet
- Click Create
Once the filter is set to Active, GA4 will exclude internal traffic from your standard reports.
Optional: Test the Filter Before Activation
- Set the filter to Testing
- Trigger traffic from the internal IP
- Use DebugView to confirm the
traffic_type=internalparameter is applied - Switch to Active once verified
Notes
- You must know your public IP address to use this method (find it at sites like
whatismyip.com) - GA4 filters only apply to future data, not retroactively
- You can define multiple traffic types (e.g.,
internal,developer,test) for more control





