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.
- Landing pageclient_id A created, source: google / cpc
- Pricing page_ga not kept, client_id B created
- Form pageclient_id C created, source: direct
- 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
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
Open a clean browser window
Use a private window with no extensions, so blockers do not interfere.
Open DevTools and find the cookie
In Chrome press F12, go to Application > Cookies > your domain, and note the value of
_ga.Click through three or four pages
Use normal links. Refresh the cookie list after each page. The
_gavalue should stay the same.Compare the client_id in the network request
In the Network tab filter for
collect. Thecidparameter in each GA4 request should match the_gavalue (the last two number groups).Check GA4 itself
In Admin > DebugView or Reports > Realtime, a single visit should appear as one user, not many.
How to fix it
| Cause | What you see | Fix |
|---|---|---|
| Cookie cannot be written | No _ga cookie in DevTools | Remove blocking scripts, fix cookie_domain, check HTTPS |
| Cookie deleted by a script or plugin | Value changes on each page | Find the cache, security or consent tool clearing cookies |
| Wrong cookie_domain or path | Cookie is set on one subdomain only | Use auto or the root domain |
| Two GA4 setups conflicting | Two different cid values | Keep one install |
| Redirect or iframe on another domain | New ID after crossing domains | Set up cross-domain measurement |
| Full page reload with server-side cookie stripping | Cookie missing from response headers | Check CDN or proxy rules |
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.
Exclude the cookie from cleaners
In your cache, security or privacy plugin, make sure cookies starting with
_gaare not removed or rewritten.Purge cache
Clear the page cache and CDN cache after changes, as cached pages can carry old scripts.
Use the Google & YouTube app or Customer Events only
Remove GA4 code pasted into theme.liquid if the sales channel app is already sending data.
Check the checkout domain
If checkout runs on a different domain from your store, set up cross-domain measurement in GA4 Admin.
Open the GA4 configuration tag
In Google tag settings check that cookie_domain is
auto(or unset) and that no field overridesclient_id.Fire the tag once
Trigger it on Initialization - All Pages, and make sure no second GA4 tag or hard-coded gtag.js exists.
Preview and compare
Use Tag Assistant preview and check the
cidstays constant across pages.
Add GA4 in one place
Use Project Settings > Custom Code (head) only, and remove duplicates from page-level code.
Publish to the live domain
Test on the published domain, not only the webflow.io staging URL.
Check funnel and domain
If funnel steps or the form sit on a different domain than your main site, set up cross-domain measurement for both.
Avoid duplicate tracking code
Add GA4 once in funnel settings tracking code, not again in each step.
Use the Google Analytics connection
Add the measurement ID under Marketing Integrations or Settings > Custom Code, not both.
Test on the connected domain
Make sure you test on the primary domain, not the wixsite.com preview.
Pick one install
Use Settings > Developer Tools > External API Keys or Code Injection, not both.
Check Cookies and Visitor Data
If cookie settings block analytics until accepted, test after accepting.
Set the cookie options explicitly
Add cookie_domain, cookie_flags and cookie_expires only if needed. See the snippet below.
Check response headers
Make sure your server, CDN or proxy does not strip or rewrite
Set-Cookie, and that the site is served over HTTPS.
<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
- The
_gavalue stays identical across at least four pages in a clean browser - The
cidin 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
_glparameter in the URL) - After 24 to 48 hours, new users per session look closer to normal
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
- 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.
Related issues
- TRK-005Two GA4 measurement IDs sending to the same propertyFix guide
- TRK-006GA4 installed twice (gtag.js and GTM) causing double page_viewsFix guide
- TRK-013GA4 missing on hosted checkout or booking domainFix guide
- TRK-001GA4 tag missing from a funnel pageFix guide
- TRK-002GA4 tag missing site-wide after a theme or builder changeFix guide
- TRK-007GA4 config fires after the conversion event (race on fast redirects)Fix guide