Skip to content
FunnelGuard

Fix guide by FunnelsGuard

UTMs lost crossing to checkout or booking domain: how to fix

TRK-313High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

UTMs are tags such as utm_source and utm_campaign added to a link so analytics knows which campaign sent the visitor. Click IDs such as gclid (Google Ads) and fbclid (Meta) do a similar job for ad platforms.

Many sites send people to another domain to pay or book, for example a hosted checkout, a scheduling tool or a separate shop domain. The browser does not carry URL parameters or first-party cookies to a different domain on its own. If your link to that domain is a plain URL, the campaign data stays behind.

Where the campaign data drops
  1. Ad clickURL has utm_source and gclid
  2. Landing pageSession is tagged correctly
  3. Link to booking domainPlain URL, no parameters
  4. Booking confirmedNew session, source is direct or referral

The visitor arrives tagged, but the link to the other domain carries nothing.

Why it costs you leads or sales

The visit and the sale are real, but the credit goes to the wrong place. Reports show the paying traffic as direct, or as a referral from your own site. Paid campaigns look like they produce nothing, and ad platforms get no conversion signal to learn from.

That leads to bad decisions: you cut campaigns that work, and bidding systems optimise on thin data. Because the loss sits at the final step, it hits the most valuable conversions.

Where purchases get creditedExample numbers
Where purchases get credited (example)Credited to campaign (broken): 20 % of purchases; Credited to campaign (fixed): 85 % of purchases; Shown as direct (broken): 60 % of purchases; Shown as direct (fixed): 8 % of purchases033652085608Credited to campaign …Credited to campaign …Shown as direct (brok…Shown as direct (fixe…% of purchases

Example: the same 100 purchases before and after the parameters are passed to the checkout domain.

How to check if your site has it

Test it by hand in five minutes
  1. Build a tagged URL

    Add ?utm_source=test&utm_medium=manual&utm_campaign=xdomain to your landing page URL and open it in a private window.

  2. Click through to checkout or booking

    Click the real button or link a customer would use.

  3. Read the new address

    Look at the address bar on the other domain. If utm_source is missing, the parameters were dropped. A _gl= value means the GA4 linker is working.

  4. Check the link itself

    Right-click the button, copy the link address and see whether it already contains parameters. Some buttons are built by script at click time, so also watch the final URL.

  5. Check GA4 Realtime or DebugView

    Confirm the session on the other domain keeps the same source, not a new one.

How to fix it

There are two layers. First, make GA4 treat both domains as one site so the session continues (the _gl linker). Second, pass the UTMs and click IDs in the URL so the destination and your ad platforms can read them. Do both when you can.

Pass the parameters across, by platform
  1. Open your Google tag settings

    In the GA4 Google tag, open Configuration settings and add the field linker with the domains of your checkout or booking tool, or set it under Admin > Data streams > Configure tag settings > Configure your domains in GA4.

  2. Add every domain

    List the checkout and booking domains, plus your main one. Use the exact hostnames.

  3. Preview and test

    Use Tag Assistant preview, click the outbound link and confirm _gl is added to the URL.

Append current tracking parameters to links to your checkout or booking domainjavascript
(function () {
  var targets = ['checkout.example.com', 'book.example-scheduler.com'];
  var keys = ['utm_source','utm_medium','utm_campaign','utm_term','utm_content','gclid','fbclid','msclkid'];
  var current = new URLSearchParams(window.location.search);
  var saved = {};
  keys.forEach(function (k) {
    var v = current.get(k) || sessionStorage.getItem('fg_' + k);
    if (v) { saved[k] = v; sessionStorage.setItem('fg_' + k, v); }
  });
  document.addEventListener('click', function (e) {
    var a = e.target.closest('a[href]');
    if (!a) return;
    var url;
    try { url = new URL(a.href); } catch (err) { return; }
    if (targets.indexOf(url.hostname) === -1) return;
    Object.keys(saved).forEach(function (k) {
      if (!url.searchParams.has(k)) url.searchParams.set(k, saved[k]);
    });
    a.href = url.toString();
  }, true);
})();
gtag.js cross-domain linkerjavascript
gtag('config', 'G-XXXXXXXXXX', {
  linker: {
    domains: ['www.example.com', 'checkout.example.com', 'book.example-scheduler.com'],
    accept_incoming: true
  }
});

How to confirm it's fixed

Confirmation checks
  • A tagged landing URL keeps its utm_source and utm_campaign in the checkout or booking URL, or carries a _gl value.
  • GA4 DebugView shows one session across both domains.
  • The conversion appears under the campaign source, not direct.
  • Google Ads and Meta tools show the conversion hit on the final page.
  • The check passes in a private window and on mobile.
Try it: parameters on the outbound linkInteractive
Outbound link drops the parameters

Dropped

Leads or data lost

The booking is credited to direct. The campaign looks like it produced no conversions.

Toggle the cause to see how one plain link changes your reporting.

How to prevent it happening again

Habits that stop a repeat
  • Add a new checkout, booking or shop domain to the cross-domain list the day it is introduced.
  • Re-test with a tagged URL after theme, plugin or checkout app changes.
  • Keep a short list of every domain a customer can reach during a purchase.
  • Ask vendors before they change hosted checkout or calendar domains.
  • Prefer a subdomain of your main domain for tools when the vendor supports it.
How the problem often appears
  1. Week 1

    Team adds a hosted booking tool on its own domain.

  2. Week 2

    Paid bookings begin to show as direct in reports.

  3. Week 6

    Ad spend is cut because campaigns seem unproductive.

  4. Week 7

    Linker and parameter passing added, attribution recovers.

How FunnelGuard handles this

FunnelGuard detects this issue. A robot visitor opens your landing page with marked test parameters, follows your real journey to the checkout or booking domain, and runs a cross-domain check on that hop. It looks at whether the campaign parameters or the linker value arrive on the other domain, and at the tracking hits sent on the final steps.

If the check fails, it is repeated from a second region, and then one alert goes out by email, Slack, Teams, WhatsApp, webhook or PagerDuty with a screenshot and a likely cause. Test traffic is marked (utm_source=funnelguard, fg_test=1) and stops before payment. The Free plan covers 1 site and 2 journeys with daily checks, and paid plans have a 3-day free trial.

Questions people ask

Why are my UTMs lost when visitors go to my checkout?

The link to your checkout is probably a plain URL on a different domain, and browsers do not carry parameters or cookies across domains by themselves. The checkout session then starts fresh, with no source. Add the checkout domain to your GA4 cross-domain list and append the UTMs to the link.

Why do my sales show as direct traffic in GA4?

Direct usually means the session had no source data. When a visitor moves to another domain without the parameters or linker value, GA4 starts a new session with nothing to read. Fixing the cross-domain hand-off typically moves those sales back to their campaigns.

How do I pass UTM parameters to another domain?

Add the parameters to the outbound link, either by editing the URL or with a small script that copies them from the current page. Also enable the GA4 linker for both domains so the _gl parameter carries the session. Test with a tagged URL to confirm they arrive.

Do I need cross-domain tracking if I use a hosted booking tool?

Yes, if the tool runs on a different domain from your website and you want the booking tied to the original campaign. Add its domain to your cross-domain list, and check whether the vendor can read parameters or run your tag.

Does a subdomain count as a different domain for tracking?

For GA4 sessions, subdomains of the same main domain share cookies, so they usually need no linker. Parameters can still be dropped by the link itself or by a redirect. A completely different domain does need the cross-domain setup.

How do I test whether UTMs survive the jump to checkout?

Open your landing page with test UTMs in a private window, click through to checkout, and read the address bar on the new domain. Look for your utm values or a _gl parameter. Then check GA4 DebugView to see whether it is one session.

Can a redirect on the checkout domain remove UTMs?

Yes. A redirect that does not keep the query string will drop everything after the question mark. Check the destination's redirect rules and make sure they preserve parameters.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: cross_domain.

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.