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.

By Clark Frye5 minute read

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
  1. Your two starting options
  2. How consent reaches your pixels and apps
  3. Checkout and thank-you pages
  4. Choosing a CMP for a Shopify store
  5. What to test after setup
  6. Questions people ask

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.

Shopify's banner compared with a privacy app
QuestionShopify's bannerA privacy app
Different settings by regionYes, managed by regionCheck the app before you install it
Google consent modeGoogle says consent mode is enabled automatically once the banner is onGoogle recommends a CMP that integrates with Shopify's Customer Privacy API
Consent records, banner design, blocking other scriptsNot described in Shopify's help pageCheck 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.

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.

  1. The banner appears where it should. Check each region you've set up, on the first page a visitor lands on.
  2. Google's tags follow consent mode. In Tag Assistant, the consent state should change with the visitor's choice.
  3. 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.
  4. Shopify apps follow the choice. Reviews, chat and upsell apps can add scripts of their own.
  5. 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.

Where the work goes from here

A rocky creek flowing through green shrubs and forest beneath a partly cloudy sky.

If this is happening on your site

The Measurement & Consent Audit tests each pixel on your store after accepting, after declining, and with Global Privacy Control turned on, and shows which ones don't follow the choice.