Cookie consent on Shopify: how to choose a setup that works with your pixels
A Shopify store usually runs more tracking than the theme shows, such as Google's tags, Meta and the pixels that apps add. Here's how a visitor's choice reaches each of them, how to choose between Shopify's banner and a privacy app, and what to test.
The short answer
On Shopify, the banner is only half of it. What matters is whether the visitor's choice reaches Shopify's privacy settings, Google's tags, Meta and every app that adds a pixel. Choose a setup that writes consent into Shopify's customer privacy settings and supports Google consent mode, then test it with a real purchase.
On this page
Your two starting options
Shopify has its own cookie banner in its customer privacy settings, and its banner and data sharing settings can be managed by region. If you'd rather use another banner, Shopify points you to privacy apps in the Shopify App Store as an alternative. If you choose one, Shopify says to integrate it with its customer privacy settings.
| Question | Shopify's banner | A privacy app |
|---|---|---|
| Different settings by region | Yes, managed by region | Check the app before you install it |
| Google consent mode | Google says consent mode is enabled automatically once the banner is on | Google recommends a CMP that integrates with Shopify's Customer Privacy API |
| Consent records, banner design, blocking other scripts | Not described in Shopify's help page | Check the app's listing and documentation |
Either way, a custom pixel you added yourself needs a code snippet to turn on Google consent mode v2.
Whether your site needs a banner, and what it has to offer visitors, is a question for your counsel. I handle the setup and the testing.
How consent reaches your pixels and apps
On a Shopify store, the visitor's choice goes through Shopify's Customer Privacy API. Shopify says the API is used to apply consent decisions to Shopify-managed surfaces, like pixels, audiences and checkout. A third-party consent tool must sync consent to Shopify through the Customer Privacy API, or Shopify never sees the choice.
Pixels added through Shopify's pixel settings declare the permissions they need. Shopify loads an app pixel only if the visitor has given every permission it declares, and you set the permissions for a custom pixel in the admin. Scripts that load some other way, such as code pasted into the theme, aren't covered by that check. OneTrust's Shopify guide says apps can read the consent values and ideally act on them, and recommends its automatic blocking for the ones that don't.
For Google's tags, Google says that with the Google & YouTube app, consent mode should work automatically once a consent platform is set up. Meta and other ad platforms follow the choice only if their pixel or app reads it. Shopify leaves getting the necessary consents to the merchant, so check each pixel instead of assuming.
Checkout and thank-you pages
Shopify controls the checkout, so tracking there works differently from the theme. Pixels load automatically on the storefront, checkout, thank-you and order status pages, inside a secure sandbox. The sandbox protects checkout, but Google notes that some events and parameters may be lost and that consent may be handled differently in a custom pixel than in a Google tag installed elsewhere. Google also says running its tags in a custom pixel isn't a supported implementation.
If your banner comes from an app, check whether it covers checkout at all. OneTrust, for example, says a Shopify Plus plan is required to add its consent integration to checkout.
Choosing a CMP for a Shopify store
No single CMP is right for every store. Start with what yours needs.
- Most small and mid-sized stores do well with a Google-certified CMP that has a Shopify app and writes consent into Shopify's privacy settings. I currently suggest CookieYes to most clients this size. Its Shopify app is run from the Shopify admin and passes consent to Google consent mode v2. Before you install it, confirm how it connects to Shopify's customer privacy settings.
- Larger brands with a privacy team, several regions or a CMP already used on other sites fit OneTrust or Usercentrics. In my setups they're the two most configurable platforms. OneTrust's Shopify integration maps OneTrust's categories to Shopify's Privacy API, and its checkout integration needs Shopify Plus. For Usercentrics, ask how it connects to Shopify before you commit.
- Osano is one I've set up on Shopify, connected to Shopify's customer privacy settings. Osano's guide describes installing it in the theme and connecting it to Shopify's Customer Privacy API, with its Shopify app needed only for a checkout install. It also says to remove Shopify's own banner so the two don't compete.
For the other platforms, see the full comparison, which CMPs Google certifies and which CMPs US sites use.
What to test after setup
Here's a sample checklist. Run through it after accepting, after declining, and with Global Privacy Control turned on, starting each run in a fresh private window.
- The banner appears where it should. Check each region you've set up, on the first page a visitor lands on.
- Google's tags follow consent mode. In Tag Assistant, the consent state should change with the visitor's choice.
- Meta and other pixels wait for consent where they should. Look for their requests in the browser's network panel before any choice is made.
- Shopify apps follow the choice. Reviews, chat and upsell apps can add scripts of their own.
- Purchases still arrive when consent is given. Place a test order and find it in GA4, Google Ads and Meta, with its value and order ID.
Questions people ask
Do I need a separate app if Shopify has a banner?
Not always. Shopify's banner can be managed by region, and Google says consent mode turns on automatically once it's enabled. An app makes sense when you need features Shopify's help page doesn't describe, such as consent records, or a CMP your organization already uses on other sites.
Will a consent banner lower my reported conversions?
It can. When visitors decline, Google's tags and other pixels collect less, so GA4, Google Ads and Meta may report fewer purchases than Shopify's orders. Compare reported purchases with your orders before and after the banner goes live, so the drop is explained before anyone acts on it.
Does the banner cover the checkout?
Pixels added in Shopify's pixel settings load on checkout and follow the permissions they declare. Whether an app's banner shows on checkout depends on the app, and sometimes on your plan. Place a test order in each consent state to see what actually happens.
