Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GA4 traffic_type=internal on all visitors: how to fix it

TRK-021High impactPartlyBy FunnelGuardPublished Updated
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

How all visitors end up excluded
  1. Real visitor arrivesAd click or organic visit
  2. GA4 tag firesSends page_view with traffic_type=internal
  3. Internal Traffic filterSet to Active, drops the hit
  4. Reports and conversionsEmpty or far too low
  5. Ad optimisationImported conversions stop

A rule or tag labels every hit internal, and the Active filter drops them.

Sessions in GA4 before and after the filter goes ActiveExample numbers
Sessions in GA4 before and after the filter goes Active (example)Day before: 1,200 sessions per day; Day filter Active: 15 sessions per day; After fix: 1,180 sessions per day04609201,200151,180Day beforeDay filter ActiveAfter fixsessions per day

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

Confirm that real visitors are labelled internal
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

What a hard-coded cause looks like in gtag.jsjavascript
gtag('config', 'G-XXXXXXXXXX', {
  traffic_type: 'internal' // sent for every visitor: remove this
});

How to fix it

Fix by platform
  1. 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.

  2. 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.

  3. 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.

Fix the internal traffic rule in GA4
  1. Open the rule

    Admin > Data streams > your stream > Configure tag settings > Show all > Define internal traffic.

  2. 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.

  3. Check the traffic_type value

    The value in the rule must match the value in the Internal Traffic data filter. Keep them consistent.

  4. 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

Fix verification
  • 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.
Before and after the fix

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

Prevention habits
  • 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.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: test_traffic_excluded checks test hits only.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.