On this page
What this issue is
GA4 marks a hit as internal by adding the event parameter traffic_type with the value internal (you can choose another value). You normally do this on purpose, for your office or home IP addresses, so your own visits do not skew reports. The problem here is that the label ends up on every hit, including real customers.
Why it costs you leads or sales
- Real visitor arrivesAd click or organic visit
- GA4 tag firesSends page_view with traffic_type=internal
- Internal Traffic filterSet to Active, drops the hit
- Reports and conversionsEmpty or far too low
- Ad optimisationImported conversions stop
A rule or tag labels every hit internal, and the Active filter drops them.
Example: illustrative numbers for a site with steady traffic whose filter was switched to Active while every hit was labelled internal.
How to check if your site has it
Check the data filter state
In GA4 go to Admin > Data collection and modification > Data filters. Note whether Internal Traffic is Testing, Active or Inactive.
Read the internal traffic rules
Go to Admin > Data streams > your web stream > Configure tag settings > Show all > Define internal traffic. Look for IP ranges that are too wide, or rules that match your public hosting or a visitor network.
Test from a network that is not yours
Open your site on mobile data (Wi-Fi off) with GA4 DebugView or the Tag Assistant. Open a hit and look for traffic_type. If it says internal from an outside network, the rule or tag is wrong.
Search your tag for a hard-coded valueGoogle Tag Manager
In GTM, open your Google tag or GA4 configuration tag and check Configuration settings and Event settings for traffic_type. On a hard-coded setup, search your page source for traffic_type.
Check Testing-state data
If the filter is in Testing, add the Test data filter name dimension to an Exploration. If all sessions show Internal, the rule is catching everyone.
gtag('config', 'G-XXXXXXXXXX', {
traffic_type: 'internal' // sent for every visitor: remove this
});How to fix it
Remove the hard-coded parameter
Open your Google tag (or GA4 configuration tag). Under Configuration settings or Event settings, delete any traffic_type row set to internal, unless it comes from a variable that is only true for your team.
Check variables and triggers
If the value comes from a variable, look at its logic. A lookup table that returns internal by default, or a regex that matches every page, will label all hits.
Preview, then publish
Use Preview mode on a network that is not yours, confirm the hit has no traffic_type=internal, then Submit and publish the container.
Delete the parameter from the config call
Remove traffic_type: 'internal' from gtag('config', ...) and from any gtag('set', ...) call that runs for everyone.
Only set it conditionally if you must
If you label your team in code, wrap it in a real condition, such as a cookie set only on staff browsers, instead of a fixed value.
Check your analytics plugin
In plugins such as Site Kit or other GA4 plugins, look for an option that adds custom parameters or marks traffic as internal or excludes roles. Turn off anything that sets traffic_type for all users.
Check the theme and header code
Search Appearance > Theme File Editor or your header and footer plugin for traffic_type.
Check the Google channel and custom pixels
In Settings > Customer events, open custom pixels and look for traffic_type. Also search theme.liquid for it.
Open the rule
Admin > Data streams > your stream > Configure tag settings > Show all > Define internal traffic.
Narrow the IP match
Use only your real office or home public IP addresses. Pick a match type such as IP address equals, and avoid wide ranges. Find your public IP by searching what is my IP from that network.
Check the traffic_type value
The value in the rule must match the value in the Internal Traffic data filter. Keep them consistent.
Set the filter state deliberately
Keep the filter in Testing until real visitors show as not internal in the Test data filter name dimension. Then set it to Active.
How to confirm it's fixed
- On mobile data, a visit shows in Realtime in GA4 within a minute or so.
- The hit in DebugView or Tag Assistant has no traffic_type=internal.
- A visit from your office IP is still labelled internal, as intended.
- In the Testing state, the Test data filter name dimension shows Internal only for your own traffic.
- Daily sessions return to your normal range the next day.
- Key events (conversions) record again for a test lead.
Broken
- Every hit carries traffic_type=internal
- Active filter drops real visitors
- Reports empty, imported conversions stop
Fixed
- Only your own IPs are labelled internal
- Real visitors are counted
- Reports and conversions match reality
How to prevent it happening again
- Always keep a new internal filter in Testing first and review the Test data filter name dimension for a few days.
- Use exact public IP addresses, not wide ranges.
- Never hard-code traffic_type in the tag for all users.
- Document who changed tag settings and when, and review GTM versions after each publish.
- Check Realtime from a non-office network after any analytics change.
- Set up an alert on a sudden drop in daily sessions in GA4 or your reporting tool.
How FunnelGuard handles this
Questions people ask
Why is all my GA4 traffic marked as internal?
Either your Define internal traffic rule matches too many visitors, such as a very wide IP range, or a tag sets traffic_type to internal for everyone. Check the rule under Configure tag settings and search your GTM or gtag setup for a hard-coded traffic_type value.
Why is my GA4 showing no data after I created an internal traffic filter?
If the Internal Traffic data filter is Active and every hit is labelled internal, GA4 drops all of them. Set the filter to Inactive or Testing, then fix the rule or tag that labels real visitors as internal.
Can I recover GA4 data excluded by an Active internal filter?
No. Hits excluded by an Active data filter are not stored and cannot be restored. You can only fix the cause and fill the gap with data from other sources, such as your ad platforms or CRM.
How do I check whether GA4 hits have traffic_type=internal?
Open DebugView or Google Tag Assistant while visiting your site from a network that is not yours, then click a hit and look for the traffic_type parameter. In Testing state you can also use the Test data filter name dimension in an Exploration.
What is the difference between Testing and Active for the GA4 internal traffic filter?
In Testing, matching hits are flagged but still counted, so you can check the rule safely. In Active, matching hits are permanently excluded from your reports.
Does FunnelGuard detect traffic_type=internal on all visitors?
Only partly. Its test_traffic_excluded check covers FunnelGuard's own test hits, not how real visitors are labelled. You should also check your GA4 data filters and internal traffic rules by hand.
How do I find my public IP for a GA4 internal traffic rule?
Search for what is my IP from the office or home network you want to exclude. Use that public address, not a local one starting with 192.168, in the rule.
Related issues
- TRK-022Test traffic not marked internal (pollutes reports)Fix 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-003Wrong GA4 measurement ID (staging or another client's property)Fix guide
- TRK-025GA4 user_id set to an email addressFix guide