Sub topic 13
A checklist for auditing your property
This chapter pulls the earlier material into one repeatable review. You can run it when you take over a property, after a site migration, or every quarter. It assumes you have already read the chapters on internal traffic rules, data filters, filter states, and the unwanted referrals list. It also assumes you have Editor or Administrator access to a property with a web data stream, and that you know your office's public IP addresses.
What the audit is for
Each setting you configured earlier can fail without any visible error. A rule can have a typo in its IP range. A filter can sit in Testing for a year while everyone assumes it works. A payment gateway can be added to your site and start stealing session credit from your real campaigns. None of these failures raise an alert. They show up as slightly wrong numbers, and slightly wrong numbers get used in decisions.
The audit has four goals:
- Confirm that internal traffic is tagged.
- Confirm that the tag is acted on.
- Confirm that referral attribution reflects how people actually reach you.
- Record what you found, so the next review starts from facts.
flowchart TDIgnore the line above. The real diagram follows.
Step 1: Audit the internal traffic rules
Open Admin, then Data streams, choose the web stream, and go to Configure tag settings. Under Show all, open Define internal traffic. For each rule, check the following.
- The traffic_type value matches the filter. The rule writes a value into the
traffic_typeevent parameter. The data filter compares against that exact value. If the rule saysinternaland the filter saysInternal, nothing matches, because the comparison is case-sensitive in practice and you should treat it that way. - The IP match is correct and current. Compare each entry against your actual public addresses. Offices change providers, and an old range keeps matching nothing.
- The match type fits the address. A CIDR range is the simplest choice for a block of addresses:
IP address is in range (CIDR notation): 203.0.113.0/24This matches every address from 203.0.113.0 to 203.0.113.255. If you only want part of a block, a regular expression is more precise. The dots are escaped so they match only literal dots, and the anchors stop partial matches:
^203\.0\.113\.([1-9]|[1-9][0-9]|1[0-9]{2})$This one matches 203.0.113.1 through 203.0.113.199. It does not match .0 or anything from .200 upward. When you audit a regex rule, test it against three addresses: one that should match, one that should not, and one at each boundary.
- There are no overlapping or redundant rules. Two rules that both write
internalare harmless. Two rules that write different values need two filters, and people often forget the second one.
Step 2: Audit the data filters and their states
Go to Admin, then Data collection and modification, then Data filters. A property can have only a limited number of filters, so a long list is itself a warning sign. For each filter, record its name, its operation (Exclude or Include), its parameter value, and its state.
| State | What it does | What to ask during an audit |
|---|---|---|
| Testing | Marks matching events with the filter name but keeps them in reports | Has it been here longer than a few days? If so, why was it not activated? |
| Active | Permanently removes matching events at processing time | Was it validated first? Active exclusion cannot be undone for past data. |
| Inactive | Ignores the filter entirely | Was it turned off deliberately? Data processed while inactive stays unfiltered. |
A filter left in Testing is the most common leak. In Testing, the events still count in every report, so the property looks protected while it is not.
To check whether a Testing filter would catch real traffic, open Explore and add the Test data filter name dimension to a free-form exploration. Pair it with Event count. Rows labelled with your filter's name are the events that would be removed. If the dimension shows only (not set), the filter matches nothing, and you should go back to Step 1.
To confirm the tag is actually being sent, register traffic_type as an event-scoped custom dimension, then break event counts down by it. You can also set the value by hand on a test page to prove the pipeline end to end:
gtag('config', 'G-XXXXXXXXXX', {
'traffic_type': 'internal'
});If that page's events then appear under your filter name in Testing, the parameter and the filter agree. Remove the manual line afterwards. Leaving it in production code hides a broken IP rule, because the filter would keep working for that page for the wrong reason.
Step 3: Audit developer traffic
The developer traffic filter works on the debug_mode parameter. Events sent with it appear in DebugView:
gtag('config', 'G-XXXXXXXXXX', {
'debug_mode': true
});Check two things. First, that the developer traffic filter is in the state you expect. Second, that debug_mode is not set to true for every visitor. A flag copied from a staging template into production is a real failure mode. With the filter Active, it would remove all your production traffic. With the filter in Testing, it would flag everything while changing nothing, and you would not notice.
Step 4: Audit the unwanted referrals list
Referral problems look different from internal traffic problems. Instead of inflated counts, you see sessions credited to the wrong source. Start with your reports. In the Traffic acquisition report, set the dimension to Session source / medium and sort by sessions.
Look for domains that belong to your own checkout, login, or payment flow. Typical culprits are payment gateways, single sign-on providers, and banking pages that redirect back to your site. When a visitor leaves for the gateway and returns, GA4 can start a new session credited to the gateway. The original campaign loses its conversion.
Then compare against the list. In Configure tag settings, open List unwanted referrals. For each domain you found, check that a rule exists and that its match type fits. This pattern covers a domain and all its subdomains:
^(.+\.)?paypal\.com$Use a regular expression only when you need subdomains. A plain "referral domain contains" rule is easier to read and less likely to break, but it can also match unrelated domains that happen to contain the string.
Keep these facts in mind when reviewing:
- The list changes attribution only for sessions collected after the change. Past sessions keep their old sources.
- Traffic from a listed domain is not dropped. It is ignored as a source, so the session keeps its earlier attribution or falls back to direct.
- Your own domains should not appear here. If they show up as referrals, the cause is usually missing cross-domain measurement, which is a different fix.
Step 5: Check the gaps that IP rules cannot cover
IP-based rules fail quietly in several situations. Work through the list and note which apply to you.
- Remote staff. Home connections have dynamic addresses, so any range you list goes stale.
- VPNs. Traffic can appear to come from the VPN provider's addresses, or from your office, depending on setup.
- Mobile networks. Phones on carrier networks share addresses with the public.
- Shared addresses. An office behind a shared provider address can match real customers if the range is too wide.
When these apply, an IP list alone is not enough. Options include setting traffic_type from a cookie or a login state, using a browser extension or tag manager variable that sets the value for staff, or routing staff through a fixed-address VPN. Choose the method your team will actually maintain.
Also remember the limits that apply no matter what you configure. Filters and referral changes are not retroactive. Data collected before a change stays as it was. A filter that is Active cannot restore data it removed.
Step 6: Record what you found
An audit that lives only in your head cannot be repeated. Keep a short log with these fields.
| Field | Example |
|---|---|
| Date of review | 2026-11-28 |
| Rules checked | Office CIDR block, remote staff regex |
| Filters and states | Internal traffic: Active. Developer traffic: Active |
| Referral domains listed | Payment gateway, single sign-on provider |
| Known gaps | Remote staff on dynamic IPs |
| Next review | Three months out, or after any site or network change |
Schedule the next review at the same time. Network changes, new payment providers, and new login systems are the usual triggers, so tie the review to those events as well as the calendar.
Quick checklist
- Each rule's
traffic_typevalue matches the filter's value exactly. - Each IP range is current and tested with matching, non-matching, and boundary addresses.
- No filter has stayed in Testing without a stated reason.
- The Test data filter name dimension shows plausible counts before any activation.
debug_modeis not enabled for production visitors.- Payment and authentication domains are on the unwanted referrals list.
- Your own domains are handled by cross-domain measurement, not the referrals list.
- Gaps from dynamic IPs and VPNs have a named alternative method.
- Findings and the next review date are written down.
Exercise
Your Traffic acquisition report shows a payment gateway as the third-largest source, and your Internal Traffic filter has been in Testing for six months. Which two audit steps do you run first, and what do you tell stakeholders about the existing historical data?
Show answer
First, check the Test data filter name dimension in an exploration to see whether the filter flags a plausible number of events, and verify that the rule's traffic_type value matches the filter. If it looks right, move the filter to Active. Second, add the gateway's domain to the unwanted referrals list, using a pattern such as ^(.+\.)?paypal\.com$ if subdomains matter. Tell stakeholders that neither change is retroactive: the past six months of data still contain internal events and gateway-credited sessions, and only data collected after each change reflects it.
Exercise
Why can a filter in the Testing state make a property look protected when it is not?
Show answer
In Testing, matching events are labelled with the filter name but still count in all reports. The filter appears to work, since the labels show up, while the numbers stay inflated. Only an Active filter removes the events.