Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Consent not shared across subdomains and checkout domain: fix

TRK-305Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

A consent management platform (CMP) is the cookie banner tool. When someone clicks Accept or Reject, it saves the choice so your tags know what they may do. That saved choice lives in a first-party cookie or in localStorage.

Both are scoped to the host that set them. A cookie set on www.example.com without a Domain attribute is not sent to shop.example.com. localStorage is never shared between origins at all. And a cookie on example.com is invisible to a different domain such as example.myshopify.com or checkout.paymentbrand.com.

Why it costs you leads or sales

The checkout, thank-you page and booking confirmation are where conversion tags fire. If consent is lost on that step, the purchase or lead is never sent to GA4, Google Ads, Meta or others, even though the visitor accepted cookies. Ad platforms then see fewer conversions, smart bidding learns from less data, and reports undercount.

A second banner at checkout also adds friction at the most sensitive moment. Some visitors leave, and others reject the second time.

Where consent gets lost
  1. Ad clickLands on www.example.com
  2. Accepts cookiesChoice saved on www host only
  3. Moves to checkout domainNo saved choice found, banner shows or denied default
  4. PurchaseConversion tags blocked
  5. Ad platform reportSale not attributed

The visitor accepted on the main site, but the checkout domain cannot read that choice.

Purchases reported vs real purchasesExample numbers
Purchases reported vs real purchases (example)Real purchases: 100 purchases; Reported, consent shared: 95 purchases; Reported, consent lost at checkout: 55 purchases038771009555Real purchasesReported, consent sha…Reported, consent los…purchases

Example: 100 real purchases in a week. When consent is lost at checkout, fewer reach the ad platform.

How to check if your site has it

Manual test in a clean browser
  1. Open a private window

    Use a fresh private or incognito window so no old consent is stored.

  2. Accept cookies on the main site

    Click Accept on the first page you visit.

  3. Follow the real journey

    Click through to the checkout, booking page or app host. Note whether the banner appears again.

  4. Compare the consent cookie on each host

    In Chrome DevTools open Application, then Cookies. Select each host and look for your CMP cookie (the name depends on the CMP). Check the Domain column: it should read .example.com for subdomains.

  5. Check tags on the last page

    Open the Network tab on the thank-you page and filter for collect, googleadservices or facebook.com/tr. If nothing fires after you accepted, consent was not carried over.

  6. Inspect Google consent signals

    In a request to Google, look at the gcs parameter. A value of G100 means denied, G111 means granted.

Consent blocks tags on the second domain

The choice made on the first host is not found on the second, so tags stay blocked.

How to fix it

The right fix depends on whether your hosts are subdomains of one domain or entirely different domains.

Which approach fits your setup
SetupExampleWhat to do
Subdomains of one domainwww.example.com and shop.example.comSet the consent cookie on the parent domain .example.com
Separate domainsexample.com and example-checkout.comUse one CMP config and pass consent through the link, or ask again on each domain
Hosted checkout you do not controlPlatform checkout domainUse the platform's own consent integration and check what it supports
Share consent by platform
  1. Set the cookie on the parent domain

    If you write your own consent cookie, set Domain=.example.com; Path=/; Secure; SameSite=Lax so every subdomain receives it.

  2. Pass consent to a different domain

    Append a parameter to the link, for example ?consent=granted, read it on the other domain, then write it into that domain's own consent storage. Only do this for choices the visitor actually made, and keep it in line with your privacy policy.

  3. Set defaults before tags load

    Call gtag('consent','default',...) first on every host, then gtag('consent','update',...) once the stored choice is read.

Set a consent cookie on the parent domain (custom code)javascript
function saveConsent(value) {
  var maxAge = 60 * 60 * 24 * 180; // 180 days
  document.cookie = 'site_consent=' + encodeURIComponent(value) +
    '; Domain=.example.com; Path=/; Max-Age=' + maxAge +
    '; Secure; SameSite=Lax';
}

function readConsent() {
  var m = document.cookie.match(/(?:^|; )site_consent=([^;]*)/);
  return m ? decodeURIComponent(m[1]) : null;
}
Apply the stored choice to Google tags on every hostjavascript
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}

gtag('consent', 'default', {
  ad_storage: 'denied',
  ad_user_data: 'denied',
  ad_personalization: 'denied',
  analytics_storage: 'denied',
  wait_for_update: 500
});

if (readConsent() === 'granted') {
  gtag('consent', 'update', {
    ad_storage: 'granted',
    ad_user_data: 'granted',
    ad_personalization: 'granted',
    analytics_storage: 'granted'
  });
}
Consent across hosts

Before

  • Consent cookie set on www only
  • Banner appears again on checkout
  • Conversion tags blocked on the thank-you page
  • Sales missing from ad platforms

After

  • Consent cookie set on the parent domain
  • Same CMP config on every host
  • Choice applied before tags load
  • Conversions sent when the visitor accepted

How to confirm it's fixed

Confirmation checklist
  • In a clean private window, accept on the main site and reach checkout without a second banner
  • The consent cookie shows the parent domain (for example .example.com) in DevTools
  • gcs reads G111 on the checkout and thank-you page after accepting
  • Reject on the main site, then confirm the checkout also stays denied
  • GA4 DebugView or Tag Assistant shows the purchase or lead event after accepting
  • Test on mobile Safari too, since it limits some storage

How to prevent it happening again

Prevention habits
  • List every domain and subdomain a visitor can pass through, including checkout and booking tools
  • Keep one CMP account and configuration for all of them
  • Retest the full journey after changing the CMP, theme, checkout or domain settings
  • Add new domains to GA4 cross-domain settings and to the CMP domain list at the same time
  • Review conversion counts against real orders each week for sudden drops

How FunnelGuard handles this

FunnelGuard does not check this yet. Spotting a lost consent choice between domains is a possible future check, but today it is not part of the product.

What FunnelGuard does do nearby: a robot visitor runs your real journeys on a schedule, checks each step, and checks the tracking hits sent to GA4, Google Ads, Meta, TikTok, LinkedIn and other platforms. If a conversion hit stops arriving at the end of a journey, or a step fails, you get one alert with a screenshot and a likely cause after a second-region recheck. That can show the symptom of lost consent, but it does not tell you consent sharing is the reason.

To watch for this issue yourself, repeat the manual test above after every change to your CMP, checkout or domains. You can also compare weekly ad-platform conversions with real orders, and use Tag Assistant or GA4 DebugView on the checkout host. The free read-only website audit can be a starting point for reviewing your tracking setup.

Consent shared or not across the checkout domainInteractive
Consent not shared with checkout domain

Consent: blocked / denied

  • GA4no hit
  • Google Adsno hit
  • Meta Pixelno hit

The checkout domain finds no choice and defaults to denied. Conversion tags stay blocked or limited.

Toggle to see how a missing shared choice changes which tags fire on checkout.

Questions people ask

Why does my cookie banner show again on the checkout page?

The checkout is probably on a different host from the page where the visitor accepted. Consent cookies and localStorage are tied to one domain, so the checkout finds no saved choice. Set the cookie on the parent domain or use the same CMP configuration on both hosts.

Is cookie consent shared between subdomains?

Only if the consent cookie is set with the parent domain, such as Domain=.example.com. A cookie set without a Domain attribute stays on the exact host. Many CMPs have a setting for this, so check yours.

How do I share cookie consent between two different domains?

Browsers do not share cookies across separate domains. You can use one CMP configuration on both and pass the visitor's choice in the link to the second domain, or ask again on each one. Only pass a choice the visitor really made.

Why are my checkout conversions missing after I added a cookie banner?

One common cause is that consent is not carried to the checkout or thank-you page, so conversion tags are blocked there. Test in a private window by accepting on the main site and checking whether tags fire on the final page. Other causes include tags firing before the choice or a CMP blocking scripts.

How can I tell if consent is denied on my thank-you page?

Open DevTools, go to the Network tab and look at a request to Google. The gcs parameter shows G100 when denied and G111 when granted. You can also use Tag Assistant to see the consent state.

Does Shopify checkout share consent with my storefront?

It depends on your setup and CMP. Shopify has its own customer privacy settings, and a CMP needs to work with them so the choice applies at checkout. Check your CMP's Shopify guide and test the full journey.

Does FunnelGuard detect consent not shared across domains?

No, FunnelGuard does not check this yet. It does monitor your journeys and the tracking hits at the end, so a missing conversion hit can be caught, but the consent cause needs a manual check.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

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.