Cross-Domain Checkout Links: Diagnose Why GA4 Starts a New Session

Diagnose GA4 cross-domain checkout tracking by tracing linker parameters, redirects, consent, tags, and session identifiers across your checkout journey.

Published
Reading time
9 min read
Cross-Domain Checkout Links: Diagnose Why GA4 Starts a New Session
On this page

A customer can click from your shop to a separate checkout domain and appear in GA4 as a new session—or arrive with unexpected referral attribution. The URL is one place to investigate, but it is not the whole measurement system. This guide walks through a controlled checkout journey and separates redirect problems from tag, consent, and referral configuration issues.

Key Takeaways

  • GA4 cross-domain measurement is intended to carry measurement identity between configured domains. UTM parameters describe campaign traffic; they do not replace the cross-domain linker.
  • Check the initial checkout navigation and every redirect for the _gl linker parameter. Its presence is a useful clue, not proof that GA4 continued the session or attributed the purchase correctly.
  • Both sides of the journey need compatible GA4 tagging and consent behavior. Referral exclusions cannot repair a missing linker parameter or a missing checkout tag.
  • Compare session and user identifiers, events, and purchase data in an authorized test—not just the URL visible in the address bar.

How cross-domain measurement differs from UTMs

Suppose a customer starts at shop.example.com and pays on checkout.example.net. These fictional domains are separate measurement environments: a cookie set for the shop is not automatically available to the checkout domain.

When cross-domain measurement is configured, the Google tag can decorate an eligible link or form submission with a _gl parameter. The linker is intended to transfer measurement information so the destination tag can associate the visit with the existing journey. The parameter is generated for a navigation; do not hard-code or manually reuse its value.

UTM parameters, such as utm_source and utm_campaign, identify campaign traffic. They do not transfer the browser's GA4 identity across domains. Adding UTMs to an internal checkout link can also complicate acquisition reporting, so do not use them as a substitute for the linker.

Research limitation: Google Analytics Help was not available to consult for this article, so the current interface and setup instructions have not been verified. Confirm the steps and provider-specific requirements in Google's current cross-domain measurement documentation before changing production settings.

Advertisement

Check the analytics setup first

Before inspecting redirects, establish what should happen on both domains:

  1. Identify the intended web data stream. Record the measurement ID used on the shop and checkout. Cross-domain measurement generally requires the same GA4 web data stream to be used across the participating domains. Different streams or properties are a configuration problem, not something a URL parameter alone fixes.
  2. Confirm the tag runs on checkout. Use your tag management preview or browser debugging tools to check that the intended Google tag loads and sends events on the checkout landing page and relevant subsequent pages. A hosted checkout may require the provider to enable or install the tag.
  3. Review the configured domains. In the Google tag settings for the web data stream, find the cross-domain configuration and check that it covers the actual shop and checkout hostnames. Interface labels and navigation can change; verify them against current Google instructions.
  4. Map the actual navigation. The checkout button may lead through a payment or routing domain before reaching the final checkout. Include those hops in your investigation, but do not assume every intermediate domain needs its own analytics tag.
  5. Record consent behavior. Note whether the customer has granted or denied analytics consent on each domain. Different consent states or a consent banner that resets on checkout can affect what the tag stores or sends.

If you cannot install or configure the required tag on the hosted checkout, ask the provider what GA4 integration it supports. Measuring an order confirmation page on your own domain may be an alternative in some designs, but it does not automatically measure the intervening checkout journey. Ensure any purchase event reflects a confirmed order and is not duplicated.

Reproduce the shop-to-checkout journey

Use a test order or non-payment checkout flow you are authorized to access. Avoid using real customer information. The example below assumes a link from shop.example.com to checkout.example.net; substitute your actual domains when testing.

1. Prepare a clean browser test

  • Open a fresh browser profile or private window, with extensions that modify analytics disabled where permitted.
  • Open developer tools and select the Network panel. Enable Preserve log so navigation requests remain visible.
  • Start any tag-manager preview or GA4 debugging workflow your implementation uses.
  • Make a deliberate consent choice and record it. Repeat the test under other relevant consent choices if your policy permits.

Private browsing does not bypass consent rules or guarantee that every browser behaves like a normal customer session. Use the same browser throughout this initial test.

2. Click the real checkout control

Navigate to the shop, add a test item if necessary, and click the actual checkout button. Do not paste a destination URL into the address bar: that skips the link-decoration and navigation behavior you need to inspect.

In the Network panel, inspect the document request initiated by the click. A decorated navigation may contain a query parameter shaped like _gl=.... Treat the value as opaque; the important question is whether the parameter is present on the relevant navigation, not whether you can interpret it.

If _gl is absent from the initial navigation, investigate the domain configuration and how the checkout control works. A JavaScript-driven navigation, a custom form flow, or a tag that has not initialized when the user clicks may require implementation-specific handling. Do not assume that every navigation method is decorated automatically.

3. Follow every redirect

Inspect the request URL, response status, and Location header for each HTTP redirect. Check whether _gl is still present on the request that reaches the checkout landing page. Query strings can be lost when a redirect constructs a new URL without preserving the relevant parameters.

Also inspect any client-side navigation, such as a script or an HTML refresh, because it may not appear as an HTTP Location header. The final address bar alone is not conclusive: a page may modify its visible URL after loading. Use the network history to see what was actually requested.

If a redirect removes _gl, ask the team controlling that redirect to preserve the linker parameter through to the destination. Then retest the real flow. Do not log or share complete customer URLs unnecessarily: query strings may contain personal information, tokens, or other sensitive data. Redact them in tickets and screenshots.

Advertisement

Determine whether the session actually continued

A surviving _gl parameter narrows the investigation, but it does not prove that the destination tag accepted the information, that consent allowed the expected measurement, or that the purchase was attributed correctly.

With consent appropriate to your test, inspect the shop and checkout events using your available GA4 debugging tools. Verify that the intended tag fires on both sides, events reach the intended property, and the checkout sequence includes the expected events. Debug views can have delays or visibility limitations, so absence from one screen is not by itself conclusive.

If your implementation exports GA4 event data to BigQuery, compare the test journey's user and session identifiers across the relevant events. For example, inspect user_pseudo_id and the ga_session_id event parameter, along with event names and timestamps. Compare the identifier pair across the shop and checkout events; a session ID by itself is not a globally unique user identifier. Allow for export availability and timing, and avoid treating an incomplete export as a final verdict.

Finally, check the confirmed test purchase and its attribution in the reports appropriate to your implementation. A continuous session, a recorded purchase, and the desired acquisition attribution are related checks—not interchangeable outcomes. The availability and timing of reporting data can differ from the immediate browser test.

Separate the likely causes

ObservationInvestigate next
No _gl on the initial checkout navigationDomain configuration, tag initialization, and whether the button or form uses a navigation method the implementation decorates.
_gl appears initially but disappears before checkoutHTTP redirects, client-side redirects, and query-string handling at each hop.
_gl reaches checkout but the expected events do notCheckout tag installation, measurement ID, consent, blocked requests, and provider configuration.
Events arrive but identifiers indicate a different sessionCross-domain configuration on both sides, consent and storage behavior, timing, and any intervening navigation. Session changes can also have causes unrelated to the linker.
The journey appears continuous but attribution is unexpectedCampaign tagging, referral configuration, report scope, and the timing and rules of the report being inspected.

A linker parameter is not permission to store or use analytics data. Consent choices can differ across domains, and a checkout provider's consent implementation may not match the shop's. Test the permitted consent states and review your implementation with the people responsible for privacy compliance. Do not bypass consent to make the numbers line up.

Referral exclusions are not identity transfer

A checkout or payment provider may appear as a referral in reports. Reviewing unwanted-referral settings can be appropriate for a legitimate payment flow, but excluding a referral is not a substitute for cross-domain measurement. It does not restore a stripped _gl, install a missing tag, or prove that two events belong to the same session. Diagnose the journey first, then assess referral settings against the reporting outcome you need.

Common Mistakes

  • Adding UTMs to the checkout link instead of configuring cross-domain measurement. Campaign labels do not carry measurement identity.
  • Checking only the final URL. Redirects or client-side URL changes can hide where a parameter was lost or removed.
  • Declaring success because _gl is present. Confirm tag execution, consent, event continuity, and the resulting purchase data as separate checks.
  • Excluding the checkout domain before diagnosing the flow. Referral settings address a different reporting concern and can mask the symptom without fixing the implementation.
  • Testing a copied link rather than the checkout button. A copied URL may not represent the decoration and redirects generated during a real click.
  • Assuming every new session is a cross-domain failure. Consider session timing, consent changes, and other navigation or configuration differences as well.

Best Practices

Document the intended measurement ID, participating domains, checkout provider, consent behavior, and expected events. Keep a redacted record of the redirect chain and rerun the journey after checkout, tag, consent, or redirect changes. Test representative browsers and payment paths where practical; a single successful path does not validate every provider or navigation method.

Conclusion

Start with the real checkout click, trace _gl through the full navigation, and then verify the resulting events and identifiers. Treat redirect preservation, consent, tag configuration, and referral reporting as distinct checks so that a URL fix is not mistaken for proof of correct attribution.

What would your domain sell for?

A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.