Skip to main content

Shopify Issues

Symptom A: Banner appears but scripts still fire (Shopify)

Cause: Shopify injects some scripts (e.g. Shopify Analytics) independently of your theme's <head>. These bypass script blocking.

Fix: ConsentForge intercepts Shopify's built-in consent API. Enable Shopify Consent API integration in Property → Settings → Platform → Shopify. This tells Shopify to withhold its own analytics until ConsentForge grants consent.


Symptom B: Banner shows on every page load

Cause: The cf_consent cookie is not persisting across pages. This can happen if your Shopify store has a cookie banner from another app that's conflicting, or if cookie domain is set incorrectly.

Fix:

  1. Check Property → Settings → Cookie domain — set to .yourdomain.com (with leading dot)
  2. Remove any other cookie/consent apps from your Shopify store — only one CMP at a time

Symptom C: Banner not showing on Shopify Markets (multi-region)

Cause: Shopify Markets uses subfolders or subdomains per locale (e.g. /de/, de.yourdomain.com). The embed token must be authorised for all domains.

Fix: Add all market domains/paths to Property → Settings → Domains.


Cause: Shopify's built-in Google channel loads GA4 and Google Ads before ConsentForge can set consent defaults.

Fix: Disable Shopify's built-in Google Sales Channel analytics and use GTM instead. Configure ConsentForge via the GTM setup guide for full Consent Mode v2 support.


Shopify app vs. script tag

The ConsentForge Shopify App (recommended) handles installation automatically. If you installed manually via theme code, ensure the script is in layout/theme.liquid before any other <script> tags.