Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GA4 client_id resetting on every page: how to find and fix it

TRK-028Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

GA4 recognises a browser through a client_id. It is saved in a first-party cookie called _ga (value like GA1.1.123456789.1700000000). On every later page, the GA4 tag reads that cookie and sends the same ID, so GA4 can join the pageviews into one session and one user.

How a reset client_id splits one visit
  1. Landing pageclient_id A created, source: google / cpc
  2. Pricing page_ga not kept, client_id B created
  3. Form pageclient_id C created, source: direct
  4. ConversionCredited to direct, not the ad

The visitor is the same person, but GA4 sees three different users.

Why it costs you leads or sales

Reported users vs real visitorsExample numbers
Reported users vs real visitors (example)Real visitors: 100 users; GA4 users with reset: 400 users0153307100400Real visitorsGA4 users with resetusers

Example: 100 real visitors who view 4 pages each. With a reset on every page, GA4 reports far more users.

How to check if your site has it

Check the _ga cookie across pages
  1. Open a clean browser window

    Use a private window with no extensions, so blockers do not interfere.

  2. Open DevTools and find the cookie

    In Chrome press F12, go to Application > Cookies > your domain, and note the value of _ga.

  3. Click through three or four pages

    Use normal links. Refresh the cookie list after each page. The _ga value should stay the same.

  4. Compare the client_id in the network request

    In the Network tab filter for collect. The cid parameter in each GA4 request should match the _ga value (the last two number groups).

  5. Check GA4 itself

    In Admin > DebugView or Reports > Realtime, a single visit should appear as one user, not many.

How to fix it

Common causes of a reset client_id
CauseWhat you seeFix
Cookie cannot be writtenNo _ga cookie in DevToolsRemove blocking scripts, fix cookie_domain, check HTTPS
Cookie deleted by a script or pluginValue changes on each pageFind the cache, security or consent tool clearing cookies
Wrong cookie_domain or pathCookie is set on one subdomain onlyUse auto or the root domain
Two GA4 setups conflictingTwo different cid valuesKeep one install
Redirect or iframe on another domainNew ID after crossing domainsSet up cross-domain measurement
Full page reload with server-side cookie strippingCookie missing from response headersCheck CDN or proxy rules
Fix by platform
  1. Use one GA4 method

    Disable duplicate GA4 code from a plugin such as Site Kit or MonsterInsights if the theme or GTM also loads it.

  2. Exclude the cookie from cleaners

    In your cache, security or privacy plugin, make sure cookies starting with _ga are not removed or rewritten.

  3. Purge cache

    Clear the page cache and CDN cache after changes, as cached pages can carry old scripts.

Standard GA4 tag with explicit cookie settingshtml
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-XXXXXXXXXX', {
    cookie_domain: 'auto',
    cookie_expires: 63072000
  });
</script>

How to confirm it's fixed

Fix confirmation
  • The _ga value stays identical across at least four pages in a clean browser
  • The cid in each GA4 collect request matches the cookie
  • Only one GA4 install is present on the page
  • DebugView shows one device for the whole visit
  • Cross-domain steps keep the same client_id (check the _gl parameter in the URL)
  • After 24 to 48 hours, new users per session look closer to normal
Before and after

Reset on each page

  • New `_ga` value on every page
  • Conversions credited to direct
  • Users close to the pageview count

Stable client_id

  • Same `_ga` across the visit
  • Source kept to the conversion
  • Users and sessions look realistic

How to prevent it happening again

Prevention
  • Keep one documented GA4 install per site
  • Re-run the cookie check after theme, plugin, CDN or consent tool changes
  • Add your checkout, booking and funnel domains to GA4 cross-domain settings
  • Whitelist _ga* cookies in cache and security tools
  • Watch for new users approaching pageviews in GA4 reports

How FunnelGuard handles this

Questions people ask

Why is my _ga cookie different on every page?

Usually the cookie is not being saved or something deletes it between pages. Common causes are a cache, security or privacy plugin clearing cookies, a wrong cookie_domain, or two GA4 installs fighting each other. Check in DevTools under Application > Cookies.

What is the GA4 client_id?

It is a random ID GA4 stores in the first-party _ga cookie to recognise a browser. GA4 uses it to link pageviews and events into sessions and users. If it changes, one person looks like several.

Why does every visit show as a new user in GA4?

GA4 counts a new user when it sees a new client_id. If the _ga cookie is blocked, expires at once or is overwritten, each page creates a new one. Consent denial and browser privacy tools can cause the same effect.

How do I check if the client_id stays the same?

Open DevTools, go to Application > Cookies and note the _ga value. Browse a few pages and check it does not change. You can also compare the cid parameter in the GA4 collect requests in the Network tab.

Can a consent banner cause the client_id to reset?

Yes. If analytics storage is denied, GA4 may not set the _ga cookie, so no ID is kept. Accept the banner and test again to separate this from a real fault.

Does cross-domain tracking affect the client_id?

Yes. When visitors move from your site to another domain such as a checkout or booking page, the cookie does not travel with them. Configure cross-domain measurement in GA4 so the _gl parameter carries the client_id across.

Does FunnelGuard detect a client_id reset?

No, not yet. It is a possible future check. FunnelGuard currently checks journeys and whether GA4 hits are sent, so use the manual cookie check in this guide for the reset.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

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.