On this page
What this issue is
Internal traffic is any visit that is not a real customer: your team, your agency, QA testers, and automated test visitors. GA4 can label these hits with the parameter traffic_type set to internal. A data filter then removes the labelled hits from your reports.
Typical sources: staff testing forms and checkouts, developers clicking through staging changes, uptime or synthetic monitoring, and test leads sent after a form change.
Why it costs you leads or sales
Test hits do not lose leads directly. They make you decide on wrong numbers. A form tested ten times adds ten fake conversions. A scheduled monitor adds a steady stream of sessions every day.
The damage shows up in decisions: a landing page looks better than it is, conversion rate and cost per lead look wrong, and imported GA4 conversions can feed Google Ads bidding with events that never came from a buyer.
Example: in one month 100 real leads plus 30 test submissions show as 130 in GA4, a 30% overstatement.
- Test visitStaff, QA or a robot loads a page
- Not marked internalNo traffic_type=internal on the hit
- Counted in GA4Session and conversion recorded
- Wrong decisionsBudget and page choices use inflated data
The break is the missing internal marking, so every later step is polluted.
How to check if your site has it
Open DebugView
In GA4 go to Admin > DebugView (or Admin > Data display > DebugView). Visit your site from a normal browser and look at the page_view event.
Look for traffic_type
Click the event and check the parameters. If your visit should be internal, you should see traffic_type with the value internal.
Check the data filter
Go to Admin > Data collection and modification > Data filters. Find Internal Traffic and read its state. Active filters remove data; Testing only flags it; Inactive does nothing.
Look for suspicious patterns
In Reports, filter by page, source or city. Spikes with utm_source=funnelguard, repeated identical sessions or conversions at fixed times usually mean test traffic.
How to fix it
There are two parts: mark the traffic, then filter it out. IP rules work for fixed office addresses. For visitors without a stable IP, such as remote staff or robots, set the parameter yourself.
Define internal traffic by IP
Go to Admin > Data streams > your web stream > Configure tag settings > Show all > Define internal traffic. Create a rule with traffic_type value internal and add your office or agency IP addresses.
Set the traffic_type parameter for visitors without a fixed IP
Send traffic_type=internal from your tag when a known marker is present, such as a cookie or a URL parameter (see the code below). Use this for remote staff and test tools.
Create or open the Internal Traffic data filter
Go to Admin > Data collection and modification > Data filters. GA4 creates an Internal Traffic filter by default. Check its value matches your traffic_type value (internal).
Set the filter to Active
Leave it in Testing first and check the Data filter name dimension in reports. When it matches only test traffic, change the state to Active.
// Place before your gtag('config') call. Replace G-XXXXXXX.
var isInternal = document.cookie.indexOf('fg_test=') !== -1 ||
location.search.indexOf('fg_test=1') !== -1;
gtag('config', 'G-XXXXXXX', isInternal ? { traffic_type: 'internal' } : {});Create a lookup variable
Add a 1st-party cookie variable or URL variable that reads your test marker (for example the fg_test cookie).
Add the field to the GA4 config tag
In the Google tag settings, under Configuration settings, add the parameter traffic_type with a value of internal when the marker exists. Use a Custom JavaScript or lookup variable to return internal or undefined.
Preview and publish
Use Preview mode to confirm the parameter appears, then publish the container.
Use your tag setup
If GA4 is added by a plugin such as Site Kit, handle the marking in GA4 with an IP rule. For parameters, add the snippet above through a header-scripts tool or move GA4 into GTM.
Exclude logged-in staff if needed
Some analytics plugins offer a setting to skip tracking for logged-in roles. Check your plugin's settings, as names vary.
Use an IP rule in GA4
Shopify limits custom code on checkout pages, so the IP rule in GA4 is the simplest option for staff.
Add the parameter where you can
If you use GTM or a custom pixel, add traffic_type=internal there when your marker is present.
Add the snippet before config
Use the JavaScript above in your base template so every page sets traffic_type before the config call.
How to confirm it's fixed
- DebugView shows traffic_type=internal on a test visit
- The Internal Traffic data filter is set to Active
- A fresh test form submission does not appear in standard reports after processing
- Real visitors from other networks still appear normally
- You noted the date the filter went Active for report comparisons
Before
- Test submissions counted as conversions
- Steady daily sessions from monitoring
- Conversion rate is off
After
- Test hits labelled internal and removed
- Sessions reflect real visitors
- Conversion rate matches real leads
How to prevent it happening again
- Add a marker (cookie or URL parameter) to every test tool and tester
- Review the Internal Traffic filter state after any GA4 property change
- Update IP rules when offices, VPNs or agency addresses change
- Use a separate test property or a filtered view for staging sites
- Keep a short note of when filters changed
How FunnelGuard handles this
FunnelGuard detects this issue. Its robot visitor marks its own traffic with utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent. The test_traffic_excluded check looks at whether that marked test traffic is excluded from your analytics, so you can see when it would be counted as real visitors.
FunnelGuard does not change your GA4 settings for you. You still add the internal marking and activate the filter, and the check tells you if it is missing. Free plan: 1 site, 2 journeys, daily checks, no card. Paid plans start with a 3-day free trial.
Questions people ask
Why is my test traffic showing up in GA4?
GA4 counts every hit unless it is labelled as internal and removed by a data filter. If you have no internal traffic rule, no traffic_type parameter, or the filter is not Active, test visits are recorded as real users.
How do I exclude internal traffic in GA4?
Go to Admin > Data streams > your stream > Configure tag settings > Define internal traffic and add a rule with traffic_type internal. Then open Admin > Data filters and set the Internal Traffic filter to Active.
Why is the GA4 internal traffic filter not working?
The most common cause is that the filter is still in Testing state. Others are an IP address that has changed, a traffic_type value that does not match the filter, or checking data collected before the filter was active.
Does the GA4 internal traffic filter remove past data?
No. Data filters only apply to data collected after they become Active. Earlier test hits remain in your reports.
How do I exclude traffic that has no fixed IP address?
Set the traffic_type=internal parameter from your tag when a marker is present, such as a cookie or a URL parameter. You can do this in gtag.js code or in the Google tag settings in GTM.
How can I tell if conversions in GA4 are fake test conversions?
Open DebugView and Reports and look for repeated identical conversions, fixed-time spikes, or sessions with a test source such as utm_source=funnelguard. Compare conversions with the leads actually in your CRM.
Does FunnelGuard test traffic affect my analytics?
It can if it is not excluded. FunnelGuard marks its visits with utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent, and its test_traffic_excluded check detects when that traffic is not excluded in your analytics.
Related issues
- TRK-021Hits marked traffic_type=internal for all visitorsFix guide
- TRK-023Internal traffic filter left in Testing state, never ActiveFix guide
- TRK-024Developer traffic filter not active, DebugView hits countedFix guide
- TRK-020GA4 hits sent with debug_mode on in productionFix guide
- TRK-005Two GA4 measurement IDs sending to the same propertyFix guide
- TRK-016GA4 property time zone or currency set wrongFix guide