ConsentPulse
<- All Guides/Shopify Pixels/SHOPIFY_PRIVACY_SPLIT_BRAIN

Fixing Shopify OS 2.0 Web Pixel Sandbox Split-Brain With Cookiebot & OneTrust

Why theme-level CMP scripts leave Shopify's native Google & YouTube and Meta checkout pixels out of sync.

1. Observed Wire Symptom

Main-window GTM tags respect your cookie banner, yet Shopify's sandboxed /wpm Web Worker pixels either fire unconsented before interaction or remain permanently muted across EEA checkouts.

2. Technical Root Cause

Shopify Checkout Extensibility isolates app pixels (Google & YouTube, Facebook & Instagram, TikTok, Klaviyo) inside Web Workers governed strictly by window.Shopify.customerPrivacy.setTrackingConsent(). Pasting a standalone OneTrust or Cookiebot snippet into theme.liquid updates window.dataLayer while leaving Shopify.customerPrivacy unsynchronized.

BROKEN PATTERN
<!-- theme.liquid: Standalone CMP without Shopify Privacy bridge -->
<script src="https://consent.cookiebot.com/uc.js" data-cbid="..."></script>
<!-- Main-window dataLayer updates, while /wpm Web Worker sandbox
     keeps window.Shopify.customerPrivacy.marketingAllowed() out of sync! -->
REMEDIATED PATTERN
<script>
  window.Shopify.loadFeatures(
    [{ name: 'consent-tracking-api', version: '0.1' }],
    function (error) {
      if (error) return;
      window.addEventListener('CookiebotOnConsentReady', function () {
        window.Shopify.customerPrivacy.setTrackingConsent({
          marketing: Boolean(window.Cookiebot.consent.marketing),
          analytics: Boolean(window.Cookiebot.consent.statistics),
          preferences: Boolean(window.Cookiebot.consent.preferences),
          sale_of_data: Boolean(window.Cookiebot.consent.marketing)
        }, function () {});
      });
    }
  );
</script>

3. Post-Publish Verification Checklist

  • ✓Configure Shopify Admin -> Settings -> Customer Privacy -> Cookie Banner regions for EEA/UK and US state laws.
  • ✓Verify window.Shopify.customerPrivacy.marketingAllowed() returns false after Reject All and true after Accept All.
  • ✓Verify California Sec-GPC: 1 sets window.Shopify.customerPrivacy.saleOfDataAllowed() === false.

4. Practitioner Edge-Case FAQ

Why don't Shopify Google & YouTube or Meta app pixels show up inside our GTM container?
Shopify native channel apps inject pixels into an isolated Web Worker (/wpm / web-pixels-manager) rather than your GTM container. GTM Consent Overview has zero control over Shopify Web Pixels—only window.Shopify.customerPrivacy.setTrackingConsent() governs them.
What happens in EEA checkouts if Shopify Automated Privacy Settings are active without a Customer Privacy API call?
When Shopify's regional privacy enforcement is enabled for Europe and your third-party theme banner never calls setTrackingConsent({ marketing: true, analytics: true }), Shopify keeps native checkout pixels permanently suppressed—dropping 100% of EEA checkout purchase events.

Did this GTM remediation playbook help resolve your issue?

1-click practitioner feedback — shapes which CMP & GTM edge cases we document next.

Verify If Your Container Suffers From SHOPIFY_PRIVACY_SPLIT_BRAIN

Paste any storefront URL to inspect live Frankfurt gcs/gcd beacons and exact GTM Tag IDs.

Audit URL Free ->
View 2,328-Site Study ->