Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GA4 missing on hosted checkout or booking domain: how to fix it

TRK-013High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Many sites send people to a different domain to pay or book. Examples are a hosted checkout such as checkout.example-store.com, a payment provider page, or a booking tool on its own address. Google Analytics 4 (GA4) identifies a visitor with a cookie stored per domain. A new domain means a new cookie, so GA4 sees a new person unless you link the two.

Where the journey breaks
  1. Ad clickVisitor lands with gclid or UTMs
  2. Product pageGA4 records the session
  3. Hosted checkout domainNo GA4 tag, or no linker parameter
  4. Purchase eventMissing or credited to referral
  5. Ad platform conversionNever reported correctly

The visitor is tracked until they cross to the hosted domain.

Why it costs you leads or sales

Purchases credited by sourceExample numbers
Purchases credited by source (example)Paid search (no cross-domain): 20 purchases; Referral / direct (no cross-domain): 80 purchases; Paid search (fixed): 100 purchases038772080100Paid search (no cross…Referral / direct (no…Paid search (fixed)purchases

Example: 100 real purchases from paid search. Numbers are illustrative only.

How to check if your site has it

Check your tracking across domains
  1. Follow your own journey

    Open your site in a fresh browser window, click through to the checkout or booking page and note the domain in the address bar.

  2. Look for the GA4 request on the hosted domain

    Open DevTools, then the Network tab, and filter by collect. Look for a request to google-analytics.com/g/collect with your measurement ID (tid=G-...) on the hosted page.

  3. Check the linker parameter

    On the link or button that leaves your site, the destination URL should gain a _gl= parameter after you click. If it is missing, cross-domain linking is not working.

  4. Check the same client ID

    In the collect requests on both domains, the cid= value should be identical. A different value means the session split.

  5. Look at GA4 reports

    In Reports, Acquisition, Traffic acquisition, look for your own domain or your checkout provider listed as a referral source, and for purchases landing under Direct.

How to fix it

Fix the tag and the cross-domain link
  1. Install GA4 on the hosted domain

    Use the provider's analytics or tracking setting to enter the same measurement ID (G-XXXXXXXXXX) as your main site, or add your Google Tag Manager container if it allows custom code.

  2. List both domains in GA4

    In GA4 go to Admin, Data streams, choose your web stream, Configure tag settings, Configure your domains. Add every domain in the journey, including the hosted one.

  3. Add the hosted domain to the referral exclusion list

    In the same Configure tag settings area, open List unwanted referrals and add the hosted domain, so a return from the payment page does not start a new session.

  4. Test the link

    Click through from your site and confirm _gl= appears in the URL and the cid is the same on both domains.

Settings by platform
  1. Use the Google & YouTube app or custom pixel

    Install GA4 through Settings, Customer events so it also runs on checkout pages. Add your domains, including the checkout domain, under Configure your domains in GA4.

  2. Check the checkout domain

    If checkout runs on a different domain from your storefront, list both domains in GA4.

gtag.js cross-domain linkerjavascript
gtag('config', 'G-XXXXXXXXXX', {
  linker: {
    domains: ['example.com', 'checkout.example-payments.com']
  }
});
Before and after

Not linked

  • Two separate sessions
  • Purchase shown as referral or direct
  • Paid campaign gets no credit

Linked

  • One session across both domains
  • Purchase credited to the original source
  • Conversions reach Google Ads

How to confirm it's fixed

Confirmation checks
  • The collect request appears on the hosted domain with your measurement ID
  • _gl= is added to the link when you leave your site
  • The cid value is the same on both domains
  • In Admin, DebugView or Realtime shows one session moving between domains
  • A test purchase or booking appears in GA4 with the correct source
  • Your own domain no longer appears as a referral

How to prevent it happening again

How FunnelGuard handles this

Questions people ask

Why is GA4 not tracking my checkout page on another domain?

GA4 cookies are stored per domain, and the tag may not be installed on the hosted domain at all. Add your measurement ID in the provider's settings, then list both domains under Configure your domains in your GA4 data stream.

How do I set up cross-domain tracking in GA4?

Go to Admin, Data streams, select your web stream, then Configure tag settings, Configure your domains. Add each domain in the journey. Then click through from one domain to the other and check that _gl= appears in the URL.

Why does my own website show as a referral in GA4?

This usually means the visitor moved to another domain and back without a link between sessions, so GA4 starts a new session with your site as the referrer. Set up cross-domain measurement and add the hosted domain to the unwanted referrals list.

Why are my booking conversions showing as direct traffic?

When the booking tool sits on another domain without cross-domain linking, GA4 loses the original source. The booking is then recorded as direct or referral instead of the ad or search visit that started it.

Can I track GA4 if my checkout provider does not let me add a tag?

Often yes. You can send the purchase event from your own thank-you page, or use a server or webhook method if the provider offers it. Check the provider's documentation, as options differ.

How do I check if the _gl parameter is working?

Open your site, click the link to the other domain and look at the address bar. A _gl= value should be added to the URL. Then compare the cid in the GA4 collect requests on both domains; it should match.

Does a missing GA4 tag on checkout affect Google Ads?

It can. If conversions are imported from GA4 or depend on the same session data, missing purchases mean Google Ads receives fewer conversion signals, which can weaken bidding decisions.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: cross-domain steps.

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.