How to add a cookie banner on Shopify

Shopify

Step-by-step: paste your privacy policy URL

  1. Generate a hosted cookie banner script URL.
  2. In Shopify admin, open Online Store → Themes → Edit code (or use a custom pixel / app embed if your theme supports it).
  3. Add the script to theme.liquid in the <head>, or install via a reputable consent app that loads your hosted script.
  4. Preview the storefront with a VPN or region setting that shows the banner for your target markets.
  5. Test that Add to Cart and checkout still work after accepting or declining non-essential cookies.

FAQ

Does Shopify’s built-in customer privacy banner replace this?

Shopify’s tools help, but many advertisers still need Consent Mode v2 wiring for Google tags. Use whichever stack correctly signals consent.