Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Checkout or booking handoff losing UTMs: how to fix it

CNV-361High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Many funnels start on one domain (your marketing site or landing page) and finish on another (a hosted checkout, a booking tool or a funnel builder domain). UTMs are the utm_source, utm_medium and utm_campaign tags in a URL. They tell analytics where a visitor came from. Click IDs such as gclid (Google Ads) and fbclid (Meta) do the same job for ad platforms.

Where the campaign data drops
  1. Ad clickURL has utm_source and gclid
  2. Landing pageParameters present, page view tracked
  3. Handoff linkPoints to checkout domain with no query string
  4. Checkout / bookingArrives as direct traffic
  5. Purchase eventCredited to no campaign

The ad click is tracked on the first domain, then the handoff link drops the parameters.

Why it costs you leads or sales

Purchases credited to the right campaignExample numbers
Purchases credited to the right campaign (example)Before fix: 15 %; After fix: 90 %034691590Before fixAfter fix%

Example: share of paid-campaign purchases that keep their source, before and after fixing the handoff.

How to check if your site has it

Test the handoff by hand
  1. Build a tagged URL

    Open your landing page with ?utm_source=test&utm_medium=cpc&utm_campaign=handoff&gclid=test123 added.

  2. Click the checkout or booking button

    Use the real button a customer would use.

  3. Read the address bar on the new domain

    If the UTMs and gclid are gone, the handoff drops them.

  4. Check for redirects

    In browser DevTools, Network tab, tick Preserve log and follow each redirect. A 301 or 302 that omits the query string is a common cause.

  5. Check the analytics report

    In GA4 Realtime or DebugView, see whether the purchase session carries your test source or shows direct.

How to fix it

Pass UTMs to the checkout or booking domain
  1. Check your button plugin or theme

    Some builders have a setting such as 'pass query string' on button links. Enable it if present.

  2. Otherwise add the script below

    Add it with a header and footer plugin, or your theme's custom code area, and change the domain list.

Append current campaign parameters to links on other domainsjavascript
(function () {
  var targets = ['checkout.example.com', 'book.example.com']; // change these
  var keys = ['utm_source','utm_medium','utm_campaign','utm_term','utm_content','gclid','fbclid','msclkid','ttclid'];
  var current = new URLSearchParams(window.location.search);
  var saved = {};
  try { saved = JSON.parse(sessionStorage.getItem('campaign') || '{}'); } catch (e) {}
  keys.forEach(function (k) { if (current.get(k)) saved[k] = current.get(k); });
  try { sessionStorage.setItem('campaign', JSON.stringify(saved)); } catch (e) {}
  document.addEventListener('click', function (e) {
    var a = e.target.closest && 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);
})();
Redirect that keeps the query stringnginx
location /book {
    return 301 https://book.example.com/start$is_args$args;
}

How to confirm it's fixed

Confirmation checks
  • Open the landing page with a tagged URL and click the handoff button.
  • The checkout or booking URL shows the same UTMs and click ID.
  • The session in GA4 keeps the test source and does not start as direct.
  • A test purchase or booking carries the campaign in your CRM or order data.
  • Redirects in the Network tab all keep the query string.

How to prevent it happening again

How FunnelGuard handles this

Questions people ask

Why are my UTMs missing on my checkout page?

The link or redirect to the checkout domain probably does not carry the query string. Redirects that rewrite the URL, buttons with hard-coded links and hosted checkouts are common causes. Test with a tagged URL and read the address bar after the click.

Why do my sales show as direct traffic in GA4?

When campaign data is lost at a domain handoff, GA4 sees the checkout visit with no source and may start a new session. The sale is then credited to direct. Passing parameters and setting up cross-domain measurement usually fixes it.

How do I pass UTM parameters to another domain?

Add the UTMs and click IDs to the link that points to the other domain. You can do this with a small script that appends saved parameters to links, or with a platform setting that passes the query string. Server redirects must also keep the query string.

Do UTMs and the _gl parameter do the same thing?

No. UTMs describe the campaign. The _gl parameter carries the Google Analytics client ID so GA4 can link sessions across domains. You usually need both to keep attribution intact.

Does a 301 redirect remove UTM parameters?

Not by itself, but many redirect rules are written without the query string and so drop it. In nginx, use $is_args$args, and in other tools look for a keep or pass query string option.

Will my Google Ads conversions still count if the gclid is lost?

Some may be modelled or matched in other ways, but you lose the direct link between click and sale. Keeping the gclid through the handoff gives Google Ads the best data for reporting and bidding.

How can I monitor this automatically?

FunnelGuard runs a robot visitor through your journey on a schedule and checks whether campaign parameters survive the handoff to another domain. It alerts you once a failure is confirmed from a second region.

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.