Most GA4 cross-domain tracking guides end at the same screen: open Admin, add every domain in the funnel under "Configure your domains," save, done. That checkbox is real and it does something specific. It is also not the whole fix, and the gap between what that screen does and what a real ecommerce checkout does to a browser session is where attribution keeps breaking on exactly the purchases worth the most to get right.
- GA4 cross-domain tracking works by appending a
_glparameter to outbound links, carrying the visitor's client ID from one domain to the next. - That mechanism depends on a normal link click or form submission. Accelerated checkout buttons, embedded payment iframes, and JavaScript-driven redirects often skip the step the linker is listening for.
- A domain list that saved successfully in Admin settings confirms the configuration exists. It does not confirm the configuration survives the checkout flow a real customer uses.
- The referral exclusion list is a separate, required second half of this fix, not an optional extra once cross-domain measurement is on.
What the domain configuration checkbox actually does
GA4 identifies a visitor through a client ID stored in the _ga cookie, and that cookie is scoped to the domain that set it. A browser on yourstore.com cannot read a cookie set on checkout.shopify.com, pay.google.com, or any other domain the funnel touches, so without intervention, every domain hop looks to GA4 like a brand new visitor arriving for the first time.
Google's own documentation on cross-domain measurement describes the fix: once every domain in a journey is listed under the same data stream's domain configuration, GA4 appends a linker parameter, _gl, to outbound links pointing at those domains. The destination domain reads that parameter and restores the original client ID instead of generating a new one. That is the entire mechanism. It is a URL parameter attached to a link, carried across a navigation, and read back on arrival.
Everything that follows in this post is a consequence of that one sentence. The linker decorates links. It does not decorate button clicks that do not result in a standard link navigation, and it does not reach a different browsing context entirely.
Where it breaks in a real ecommerce checkout
Accelerated checkout buttons skip the link the linker needs
Shop Pay, PayPal Express, Apple Pay, and Google Pay buttons are built to get a returning customer to a completed order in one tap, and most of them accomplish that with a JavaScript-triggered redirect or a provider-controlled popup rather than a plain <a href> the browser treats as a normal click. GA4's automatic link decoration listens for exactly that: an anchor tag click or a form submission to a configured domain. A button that bypasses both never gives the linker a chance to attach _gl before the handoff happens.
The domain is still correctly listed in GA4 Admin. The mechanism that configuration depends on simply never fires for that specific button, so the session that lands back on the order confirmation page arrives with no linker parameter and no way to reconnect to the client ID that started the visit.
Embedded payment iframes are a separate browsing context
A growing number of checkout flows embed the payment step directly in an iframe, using Stripe Elements or an equivalent, rather than redirecting to a separate page. Cross-domain measurement is built around navigation between top-level domains. An iframe loaded from a different origin than its parent page is its own browsing context, and the _gl linker parameter does not cross that boundary at all.
GA4 does not document a built-in way to bridge that boundary. The common workaround engineering teams build themselves is the browser's window.postMessage API: the parent page passes its own client ID to the script running inside the iframe, since the linker parameter has no path to reach it otherwise. That is a manual integration a developer has to build, not a setting GA4 ships, which is exactly why it gets skipped on checkout flows nobody flagged as "cross-domain" in the first place because the payment step never left the page. A sandboxed iframe silently re-running a second, duplicate Google tag is a related but separate failure mode, and our GTM container audit walks through how that specific double-counting pattern gets caught.
The referral exclusion list is the other half, not an optional add-on
When a customer bounces back from a checkout or payment domain, GA4 has to be told to ignore that domain as a traffic source, or the returning hit looks like a new session starting from a referral, and the referral source gets credit that should have gone to the original campaign.
Shopify's own documentation on excluding referrer domains names the store's own checkout domain, Shop Pay, and PayPal as domains to add to that exclusion list for a Shopify store, and that list lives in a different settings screen from the domain configuration cross-domain tracking uses. They solve two different problems: one carries the client ID forward across a hop, the other stops GA4 from treating the return trip as a new session. Setting up only one of them leaves the other half of the gap wide open, and it is common to see a GA4 property with a clean domain configuration and an empty, never-touched referral exclusion list sitting right next to it.
UTM parameters can look fine and still not be the real signal
A related trap worth testing for directly: a server that reads a campaign parameter on the landing page and quietly re-applies it on the checkout domain can make attribution look intact in a glance at the address bar, while the client-side linker mechanism GA4 actually relies on never ran at all. Our UTM parameter audit covers that specific failure mode and the storage mechanics that catch it in more depth. The short version here: a familiar-looking campaign parameter surviving the hop is not proof that GA4's own cross-domain linking did the carrying, and DebugView is the only way to tell the difference.
Testing it properly, not just confirming it saved
A domain list that saves without an error message in GA4 Admin tells you the configuration exists. It tells you nothing about whether that configuration does anything for the specific buttons and iframes your checkout actually uses. The test that matters walks the real path:
- Open GA4 DebugView and note the client ID on the landing domain.
- Walk the funnel using the actual accelerated checkout button, embedded payment widget, or redirect a real customer would use, not a plain text link standing in for it.
- Confirm the
_glparameter appears in the URL at the destination domain, and that DebugView shows the same client ID continuing rather than a new one starting. - Check the referral exclusion list separately, confirming the checkout and payment domains in the funnel are on it, since this is a different setting from the one in step 1.
Any step that fails points at exactly which half of the fix is missing, which is more useful than a general sense that "cross-domain tracking is probably fine" because the admin screen has values in it.
When to fix it yourself and when it's worth an audit
If the funnel is a standard redirect checkout on one additional domain, with no accelerated buttons and no embedded payment iframe, the domain configuration plus a matching referral exclusion list is usually a same-day fix a technical marketer can run through directly from the documentation above.
The calculation changes once the funnel includes an accelerated checkout button, an embedded payment widget, or more than two domains stacked together, because each of those adds a failure point that a quick admin-panel check will not surface. That is the exact gap our ecommerce tracking audit is built to find, walking the real checkout path in DebugView rather than confirming a setting exists, and a completed sample tracking audit report shows what that output looks like before you commit to one. It pairs directly with the cross-domain check already listed in our GA4 audit checklist, and if checkout isn't the only thing under question, a broader analytics audit covers this alongside reporting and attribution in the same pass.
Get the linker parameter and the referral exclusion list both right, and a GA4 property stops losing the one thing a multi-domain ecommerce funnel cannot afford to lose: knowing that the visitor who clicked the ad is the same one who completed the order.
