Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Test traffic not marked internal in GA4: how to find and fix it

TRK-022Medium impactDetectedBy FunnelGuardPublished Updated
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.

Reported vs real conversionsExample numbers
Reported vs real conversions (example)Real leads: 100 conversions; Test submissions: 30 conversions; Shown in GA4: 130 conversions05010010030130Real leadsTest submissionsShown in GA4conversions

Example: in one month 100 real leads plus 30 test submissions show as 130 in GA4, a 30% overstatement.

How test traffic reaches your reports
  1. Test visitStaff, QA or a robot loads a page
  2. Not marked internalNo traffic_type=internal on the hit
  3. Counted in GA4Session and conversion recorded
  4. 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

Check whether test traffic is excluded
  1. 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.

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

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

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

Mark and exclude internal traffic in GA4
  1. 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.

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

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

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

Mark visitors with a cookie as internal (gtag.js)javascript
// 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' } : {});
Marking internal traffic by platform
  1. Create a lookup variable

    Add a 1st-party cookie variable or URL variable that reads your test marker (for example the fg_test cookie).

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

  3. Preview and publish

    Use Preview mode to confirm the parameter appears, then publish the container.

How to confirm it's fixed

Confirmation checklist
  • 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
Reports before and after

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

Habits that keep reports clean
  • 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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: test_traffic_excluded.

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.