Google Consent Mode v2 fires before gtag.js

Cookie consent for Shopify with Google Consent Mode v2 built-in

GDPR-compliant cookie banner for Shopify stores. Under 25KB. Fires Google Consent Mode v2 before any Google tag loads — so your GA4 and Google Ads conversion data stays accurate after the GCM v2 mandate. Integrates with Shopify's Customer Privacy API.

GDPR + ePrivacy + CCPA Google Consent Mode v2 Customer Privacy API Under 25KB

Why Shopify merchants need CookieBoss

Most Shopify cookie apps are heavy, expensive, and break Google Consent Mode v2 attribution.

GCM v2 done right

Google Consent Mode v2 has to fire before gtag.js or you lose first-pageview attribution. Most Shopify CMP apps load asynchronously and get the order wrong. CookieBoss inlines the GCM defaults so they fire first, every time.

Won't slow your storefront

Shopify themes are already heavy. CookieBoss adds under 25KB and zero blocking requests — rounding error next to most Shopify apps that ship 200KB+ of JS.

Knows Shopify cookies

Auto-detects _shopify_*, cart, and checkout cookies. Categorizes them correctly so your banner doesn't ask shoppers to accept their own cart.

Customer Privacy API

Writes consent state into Shopify's official Customer Privacy API. Other Shopify apps that respect it (Klaviyo, Meta Pixel, GA4 sales channel) get the consent signal automatically.

Install in 3 steps

One paste into theme.liquid. Done.

  1. 1

    Sign up free

    Create your account at cookieboss.io/signup. Every account includes a 14-day Pro trial.

  2. 2

    Add your myshopify.com URL

    CookieBoss scans your storefront and auto-categorizes cookies (Shopify, GA4, Meta Pixel, Klaviyo, TikTok Pixel, etc.).

  3. 3

    Paste one tag in theme.liquid

    In Shopify admin: Online Store → Themes → Edit code → layout/theme.liquid. Paste right after <head>.

    <script
      src="https://cdn.cookieboss.io/s/YOUR-SITE-ID.js"
      defer>
    </script>

Add to your Shopify store in 5 minutes

Free plan forever. 14-day Pro trial on every account. GCM v2 included on every tier.