Cookie consent for a Shopify store, explained
Shopify gives you a consent banner and a customer privacy API, but out of the box they do not automatically gate every tracking tool you have added. Getting it right means connecting the banner to your pixels and GA4, not just switching it on.
What Shopify gives you
Shopify has a built-in cookie banner and a Customer Privacy API that broadcasts the visitor's consent choice. Shopify's own tracking and apps that use the API respect it. The gap is anything that does not: custom pixels, hardcoded tags, or tools added through the theme.
Where it goes wrong
- Hardcoded pixels in the theme that fire on load, ignoring the banner, so cookies load even after reject.
- GA4 or the Meta pixel added outside the consent API, not gated at all.
- Checkout tracking that behaves differently since checkout extensibility replaced checkout.liquid.
How to set it up properly
Use Shopify's consent banner and make sure every tracking tool reads the Customer Privacy API, moving custom pixels and GA4 into Shopify's Customer Events (Web Pixels) or a consent-aware GTM setup so they only fire with consent. Then test by rejecting and confirming the pixels stay quiet. Also decide your regional model: opt-in for the EU and UK, opt-out for the US.
Want us to check your tracking in 10 seconds?
Pop in your domain and we will show you what is firing, what is not, and where data is leaking. Free, no signup.
Check my tracking freeGet a plain-English audit
We check your live GA4, Google Tag Manager and consent setup by hand and tell you exactly what is wrong. The audit comes off any build.
See how it works & pricingDatahound are analytics and ad-tracking specialists. We fix broken GA4, Google Tag Manager and server-side tracking so every sale, form and call gets counted. Back to datahound.agency · All tracking guides · Cookie consent for WordPress