On this page
What this issue is
A visitor clicks an ad, lands on www.yourbrand.com, fills in a form, and is sent to a thank-you page on another domain, such as yourbrand-booking.com or a tool's hosted page. Analytics stores the visitor's identity in a first-party cookie, and a cookie set on one domain cannot be read on another. So the second domain sees a brand new visitor.
- Ad clickgclid and UTMs arrive on landing page
- Form pageSame domain, session continues
- Redirect to other domainNo _gl linker, cookie not shared
- Thank-you pageNew session, source = direct or referral
- ConversionCredited to the wrong channel
The ad click is tracked on the first domain. The jump to the thank-you domain loses the identity, so the conversion has no source.
Why it costs you leads or sales
Example: illustrative numbers for 100 leads that all came from paid search.
How to check if your site has it
Open a private window and visit your landing page with test UTMs
Use a URL like
https://www.yourbrand.com/?utm_source=test&utm_medium=cpc&utm_campaign=xdomain.Submit the form or start the checkout
Watch the address bar when you land on the other domain. A working setup shows
?_gl=...in the URL (it may be removed a moment later).Open GA4 DebugView or Tag Assistant
In GA4 go to Admin > DebugView, with debug mode on from Tag Assistant. Check the
session_startandpage_viewevents on the thank-you page.Compare the client ID and session
If the thank-you page shows a new
session_startand a different source than the landing page, the domains are not linked.Look in your reports
In GA4 Reports > Acquisition > Traffic acquisition, a lot of key events under Direct, or under your own domains as Referral, is a warning sign.
How to fix it
Use one container or the same GA4 measurement ID
Make sure the GA4 configuration tag runs on both domains and sends to the same measurement ID.
Add the domains in GA4
In GA4 go to Admin > Data streams > your web stream > Configure tag settings > Configure your domains. Add each domain with the match type 'contains' or 'exactly matches'.
Publish and test
Use GTM Preview on the first domain, click through to the second and confirm
_glis added to the URL.
Check how GA4 is installed
If you use Google Tag Manager or Site Kit, add the domains in GA4 under Configure your domains. Some plugins have their own cross-domain field; if so, add the other domain there too.
Check the form's redirect
In your form plugin, find the setting for redirect after submission. A JavaScript or server redirect may not carry
_gl; see the Custom code tab.
Add the domains in GA4
Add the store domain and the external domain under Configure your domains in the GA4 web stream.
Check the tracking set up
If you use the Google & YouTube app or custom pixels, confirm the same GA4 ID is on the external site. Checkout and thank-you pages on Shopify's own domain are handled by Shopify's settings; check them separately.
Install GA4 on both sites
Add the GA4 tag in Project settings > Custom code, or use GTM, on each Webflow site.
Add the domains in GA4
Add both under Configure your domains. For a form redirect, use a normal link to the other domain, which GA4 can decorate.
Put the same tracking on both funnels
Add your GA4 or GTM code in the funnel or website tracking code settings on both domains.
Add the domains in GA4
List every custom domain used by the funnel steps. A redirect set in the form's 'redirect URL' option may drop
_gl, so test it.
Connect GA4 on both sites
Use the same measurement ID on both domains.
Add the domains in GA4
Add both under Configure your domains. Then test the form's thank-you link, as Wix may handle redirects in its own way.
Use the same GA4 ID
Add the measurement ID on both sites, or through code injection with GTM.
Add the domains in GA4
Add both under Configure your domains and test the form's post-submit redirect.
Configure the linker in gtag.js
Add the
linkersetting to your config call on both domains (see the code below).Keep _gl on redirects
If your server redirects after the form, append the query string to the target URL or send the visitor with a decorated link.
gtag('config', 'G-XXXXXXXXXX', {
linker: {
domains: ['www.yourbrand.com', 'yourbrand-booking.com'],
accept_incoming: true
}
});How to confirm it's fixed
- The URL on the second domain contains
_gl=right after the jump. - In DebugView there is no new
session_starton the thank-you page. - The source and medium on the thank-you page match your test UTMs.
- The conversion shows under the right channel in GA4 after processing.
- Ad platform tags on the thank-you page still receive the click ID.
How to prevent it happening again
- Add new domains to Configure your domains before launch.
- Test with UTMs after every change to forms, redirects or tag setup.
- Use one GA4 property across all funnel domains.
- Watch for a rise in direct traffic or self-referrals.
How FunnelGuard handles this
Questions people ask
Why does my thank-you page show as direct traffic in GA4?
If the thank-you page is on another domain that is not linked, GA4 cannot read the visitor's cookie there and starts a new session with no source, so it is often reported as direct. Add both domains in Configure your domains and check that the _gl parameter reaches the second site.
How do I set up cross-domain tracking in GA4?
Go to Admin > Data streams > your web stream > Configure tag settings > Configure your domains and add every domain in the journey. Use the same GA4 measurement ID on all of them, then test that _gl appears in the URL when you move between sites.
Why is my own domain showing as a referral in GA4?
This happens when a visitor moves between two of your domains and the session is not continued, so the first domain is credited as the referrer. Linking the domains fixes it, and you can also add the domain under List unwanted referrals.
What is the _gl parameter?
It is a linker parameter GA4 adds to links and form submissions between your domains. It carries the visitor's identifiers so the second site can continue the same session instead of starting a new one.
Why is the _gl parameter missing after my form redirect?
The linker only decorates links and forms it detects, so a server redirect, a script redirect or a third-party tool's redirect can drop it. Make the redirect keep the query string, or send visitors to the thank-you page with a normal link.
Does a thank-you page on another domain affect Google Ads conversions?
It can. If the conversion tag runs on the second domain without the click ID, Google Ads may not match the conversion to the ad click. Link the domains and check that the conversion appears in Google Ads as well as GA4.
Can FunnelGuard tell me if my thank-you page starts a new session?
Yes. FunnelGuard runs the journey on a schedule and its cross-domain check detects when tracking identity does not carry over to a thank-you page on another domain. It re-checks from a second region and sends one alert with a screenshot and a likely cause.
Related issues
- TRK-313UTMs lost crossing to checkout / booking domainFix guide
- TRK-314Cross-domain _gl linker parameter not appendedFix guide
- TRK-315_gl parameter stripped by destination redirectFix guide
- TRK-316Cross-domain domains list missing the booking toolFix guide
- TRK-326Payment gateway (PayPal/Stripe) shown as referral sourceFix guide
- TRK-332Iframe forms lose parent page UTMsFix guide