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.
- Ad clickVisitor lands with gclid or UTMs
- Product pageGA4 records the session
- Hosted checkout domainNo GA4 tag, or no linker parameter
- Purchase eventMissing or credited to referral
- Ad platform conversionNever reported correctly
The visitor is tracked until they cross to the hosted domain.
Why it costs you leads or sales
Example: 100 real purchases from paid search. Numbers are illustrative only.
How to check if your site has it
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.
Look for the GA4 request on the hosted domain
Open DevTools, then the Network tab, and filter by
collect. Look for a request togoogle-analytics.com/g/collectwith your measurement ID (tid=G-...) on the hosted page.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.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.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
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.
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.
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.
Test the link
Click through from your site and confirm
_gl=appears in the URL and thecidis the same on both domains.
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.
Check the checkout domain
If checkout runs on a different domain from your storefront, list both domains in GA4.
Use one container on both domains
Add the same GTM container to the hosted domain if the provider allows it.
Set the cross-domain option
In your GA4 configuration tag, under Fields to set, or in the Google tag settings, add the domains to link, or rely on the domains configured in GA4 Admin.
Preview on both domains
Use Tag Assistant to check that the tag fires on each domain with the same client ID.
Add the hosted domain in your analytics plugin
Plugins such as Site Kit or MonsterInsights usually rely on the GA4 domain settings. Configure your domains in GA4 Admin as described above.
Check the booking plugin
If a booking plugin embeds an external widget, check whether it has its own tracking field for a GA4 ID.
Keep GA4 in Site settings
Add the tag under Site settings, Integrations or Custom code, then list the external domain in GA4 Admin.
Use the provider's own tracking field
Add your measurement ID in the booking or payment tool's settings where available.
Add tracking to funnels and calendars
Add your GA4 measurement ID in the funnel or website tracking settings, and check calendar or booking pages use the same ID where the setting is offered.
List the custom domains in GA4
Add every domain the funnel uses under Configure your domains.
Configure linking in gtag
Add the linker domains to the config command on every page that uses the tag, as shown in the code below.
gtag('config', 'G-XXXXXXXXXX', {
linker: {
domains: ['example.com', 'checkout.example-payments.com']
}
});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
- The collect request appears on the hosted domain with your measurement ID
_gl=is added to the link when you leave your site- The
cidvalue 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.
Related issues
- TRK-001GA4 tag missing from a funnel pageFix guide
- TRK-012GA4 missing on thank-you or order confirmation pageFix guide
- TRK-014GA4 data stream web URL pointing to an old domainFix guide
- TRK-003Wrong GA4 measurement ID (staging or another client's property)Fix guide
- TRK-007GA4 config fires after the conversion event (race on fast redirects)Fix guide
- TRK-006GA4 installed twice (gtag.js and GTM) causing double page_viewsFix guide