Sub topic 6
Testing, Active, and Inactive Filter States
This chapter assumes you have a GA4 property with a web data stream, Editor or Administrator access, and an internal traffic rule that sets traffic_type to internal. You should also understand GA4 events, sessions, and traffic sources.
A GA4 data filter controls whether matching event data is included in your property. For internal traffic, the filter usually matches events whose traffic_type value is internal. Before changing the filter, choose its state carefully.
The three filter states
GA4 provides three states for a data filter:
| State | What GA4 does | When to use it |
|---|---|---|
| Testing | Marks matching data so you can evaluate the result without permanently excluding it | While validating a new filter |
| Active | Excludes matching data from processing | After the filter is confirmed |
| Inactive | Does not apply the filter | When the filter is paused or no longer needed |
A filter in Testing does not behave like an Active filter in your ordinary reports. Instead, GA4 adds a filter-result value to matching events. You can inspect that value with the Test data filter name dimension in reports or Explorations.
This lets you estimate the effect of the filter before you remove data from reporting. For example, you can compare the number of events marked by an internal traffic filter with the number of events that would remain after exclusion.
An Inactive filter is retained in the property but has no effect on incoming data. This is useful when you want to pause a filter without deleting its configuration. It can also prevent confusion when an old filter explains historical setup decisions.
Moving a filter from Testing to Active
Open the property and go to the data filter settings for the relevant web stream or property. Select the internal traffic filter and review its name, event parameter, and matching condition.
Use this sequence:
- Leave the filter in Testing.
- Send visits from a known internal network.
- Confirm that matching events receive the expected test filter name.
- Check that normal external visits do not receive that name.
- Estimate how much traffic the filter would affect.
- Change the filter state to Active only after the results are correct.
The exact navigation labels can change, but the important distinction remains: Testing helps you measure the proposed filter, while Active excludes matching data.
Verifying the test result
Use DebugView for quick event-level checks while sending test events. DebugView can help confirm that events are arriving, but it is not the only validation method. A visible event in DebugView does not prove that the internal traffic filter matched it.
For filter-specific validation, open a report or Exploration that includes the Test data filter name dimension. Filtered test events should show the name you assigned to the filter. Events from a control visit, such as a personal connection outside the office network, should not show that value.
Test several cases:
- A visit from each office or known internal network.
- A visit from an external network.
- A page load before and after the configuration changes.
- Events generated by different parts of the site.
- A user who changes networks during one session.
Allow for processing delay. Do not activate a filter because one test event looks correct. Check enough traffic to identify an incorrect IP range, a missing office location, or an overly broad rule.
When to use Inactive
Set a filter to Inactive when you need to stop applying it but want to preserve its configuration. For example, you might temporarily stop excluding a network while investigating a reporting difference.
Do not use Inactive as a substitute for Testing. Inactive produces no test labels, so it gives you no evidence about how the filter would behave. If you need evidence, use Testing and inspect Test data filter name.
Exercise
An internal traffic filter correctly labels office visits in Testing, but it also labels visits from a customer-facing network. Should you activate it?
Show answer
No. Leave it in Testing, correct the matching rule, and repeat the control tests. Activating it would exclude legitimate customer traffic from future processing.