Home › Guides › Shopify cookie consent
Shopify cookie consent: how to make pixels wait for yes
In short: Shopify has a free built-in cookie banner and a Customer Privacy API that official apps respect. Most pre-consent problems on Shopify come from three things: the banner only shows in Europe, pixels pasted into the theme, and third-party apps that inject their own scripts.
Step 1 — See what fires today
Run a free scan of your store's home page. Note every tool in red or amber: Meta Pixel, TikTok, Google Ads, Pinterest, Klaviyo, chat, Hotjar or Clarity. That list is your to-do list.
Step 2 — Show the banner to U.S. visitors
- In Shopify admin, go to Settings → Customer privacy.
- Open Cookie banner and check the regions where it appears. If it's only shown in Europe/UK, U.S. visitors never see it and nothing waits.
- Choose a banner that asks for consent (Accept / Decline) for U.S. visitors, then save.
Shopify updates these menus often; if a label differs, look for "Customer privacy", "Cookie banner" or "Privacy settings". A third-party consent app that uses Shopify's Customer Privacy API also works.
Step 3 — Connect pixels the Shopify way
Official sales-channel apps send data according to the visitor's consent:
- Facebook & Instagram app for the Meta Pixel and Conversions API.
- Google & YouTube app for GA4 and Google Ads (supports Consent Mode).
- TikTok app for the TikTok Pixel.
If you connected a pixel both through an app and by pasting code, the pasted copy ignores consent. Keep the app version only.
Step 4 — Remove pixels that ignore consent
- Online Store → Themes → Edit code → theme.liquid: search for
fbq(,gtag(,ttq,clarity,hotjar. Remove pasted tracking code you now manage through apps. - Settings → Customer events: review custom pixels and make sure their permission settings require marketing or analytics consent.
- Apps: reviews, pop-ups, chat and "visitor recording" apps often load scripts on every page. Check each app's settings for a consent option, or uninstall what you don't use.
Step 5 — Re-scan and keep checking
Scan again in a private window. High-risk tools should be gone until "Accept". Re-scan after installing any new app — it's the most common way pixels return on Shopify.
Rather have us do it?
We fix Shopify stores for $149: banner, apps, theme code, Consent Mode and a clean re-scan — plus 6 months of weekly checks.
Common questions
Is Shopify's built-in banner enough?
It can be, when it's shown to U.S. visitors and your pixels go through apps that respect it. Theme code and some third-party apps can still bypass it, so always confirm with a scan.
Will my Meta ads stop working?
No. Visitors who accept are tracked as before, and the Facebook & Instagram app sends consented events through the Conversions API.
Does this apply to checkout pages?
Checkout pixels are handled through Shopify's Customer events. Review those settings too; our scan checks the home page only.