How to set up cookie consent on Shopify (UK PECR)
Under the UK's PECR rules, you need consent before setting non-essential cookies, such as analytics and advertising pixels. On Shopify, turn on the cookie banner in customer privacy settings, or use a consent app, and make sure tracking only loads after consent. Rejecting should be as easy as accepting.
By Abdullah Ashraf, Shopify expert · Last updated: October 2026
Quick summary
- Essential cookies don't need consent; analytics and ads do.
- Reject must be as easy as accept.
- Connect consent to Google and Meta tracking.
Turn on a cookie banner
Shopify's customer privacy settings include a cookie banner for UK and EU visitors. Alternatively, use a consent app with more options.
What good consent looks like
- Clear accept and reject buttons with equal prominence
- No pre-ticked boxes
- A way to change choices later
- A cookie policy explaining what you use
Connect tracking
Tracking apps and pixels should respect consent through Shopify's customer privacy tools. Google consent mode adjusts Google tags based on consent. See tracking setup.
Frequently asked questions
Do I need a cookie banner?
Yes, if you use non-essential cookies.
Does consent affect ad tracking?
Yes, which is why server-side tools like Conversions API matter.
Keep reading
Official sources
Checked September 2026. Rules change, so always check the latest official guidance.
Let's grow your store
Tell me what you sell and where you're stuck. You'll get honest advice and a fixed quote, even if we don't end up working together.

