Z O B A E R

Loading

Guide Shopify guide

Shopify Cookie Banner: Consent Mode v2 Setup and Test

Set up Shopify's free cookie banner, see how Google Consent Mode v2 and the Meta pixel read it, and run a 2-minute test to check the signals.
Zobaer Hossain
Zobaer H.Shopify Select Partner · 10+ years
Shopify cookie banner and Google Consent Mode v2 setup for EU and UK visitors, guide by Zobaer H.

If you sell to shoppers in the EU or the UK, you will likely need to ask before you track them. The free Shopify cookie banner does that job. It also passes each choice on to Google logo Google and Meta logo Meta. Turning it on is easy. Knowing that the signals really arrive is the hard part.

In this guide I show you how to set up the banner, how Google’s Consent Mode v2 reads it, and how to test it in two minutes. I have set up cookie consent on many client stores, and this is the order I check things in. This is general information, not legal advice.

Here is what you will learn:

  • What the banner covers, and what it doesn’t.
  • How to set it up in five steps.
  • How the Google & YouTube logo Google & YouTube app sends Consent Mode v2 signals.
  • How the Meta pixel follows the same choice.
  • A 2-minute test, and fixes for common problems.
  • When a paid consent app is worth it.

What the Shopify cookie banner does (and doesn’t do)

The Shopify cookie banner is a free consent pop-up built into your admin. It asks visitors in the regions you pick to accept or decline tracking. Then it saves the answer in Shopify’s Customer Privacy API, which pixels and apps read.

Shopify is clear about its limits. The banner “governs Shopify-specific tools, including cookies and Shopify Pixels.” In practice:

  • Covered: Shopify’s own cookies, plus app pixels and custom pixels under Settings, then Customer events. That includes the Google & YouTube app and the Facebook & Instagram logo Facebook & Instagram app.
  • Not covered: code pasted into your theme, like an old Google tag in theme.liquid. For those, Shopify says you may need a third-party banner or custom logic.

So first, find out where your tracking lives. If it all runs through Customer events, the free banner can handle it.

How to set up the Shopify cookie banner in 5 steps

Setup takes about ten minutes. Shopify adds the banner, not your theme. So the steps are the same in Dawn, Horizon and every other theme. Shopify’s own guide to configuring customer privacy settings has the full reference.

Step 1: Publish a privacy policy

The banner won’t show until your store has a published privacy policy. Go to Settings, then Customer privacy, and click Privacy policy. Write your own or click Use automated policy. Then click Save.

Step 2: Open the banner settings

On the same page, click Cookie banner. On a store that never used it, you may see a Set up banner button first. On many new stores, the Shopify cookie banner is on already. Shopify turns on automated privacy settings by default and adds the banner for UK and EEA visitors if you have active markets there.

Step 3: Choose the regions

In Regions and content, you have two options:

  • Automated: keep Use automated settings on. Shopify keeps regions and text in line with its advice.
  • Manual: turn it off, click Edit in Regions, pick your countries, click Done, then Save.

Outside your regions, the banner stays hidden and tracking runs as normal. That is Shopify’s default for places like the US. You can still use the banner anywhere.

Step 4: Set the look and position

Change the colors to match your store. Then pick a spot in the Position section and click Save. The banner can be a bar along the bottom, a box in a corner, or a pop-up in the center. Click View to preview it.

Shopify cookie banner settings: regions, automated settings, appearance and position in Customer privacy
Settings, then Customer privacy, then Cookie banner: regions first, then look and position.

Step 5: Check languages and the preferences link

Shopify shows the banner in the visitor’s language, with default text in 32 languages. To edit a translation, click More actions, then Localize.

Shoppers must be able to change their mind. Shopify says they can reopen their choices from your policies or a Cookie preferences link in the footer. Check your footer on a phone. You can also show the banner on checkout. That option is off by default.

Shopify cookie banner on a phone with Accept, Decline and Manage preferences, plus the cookie consent preferences panel
An illustration of the banner and the preferences panel that EU and UK visitors see.

How Consent Mode v2 works with the Shopify cookie banner

Consent Mode v2 is how Google tags learn what a visitor agreed to. It doesn’t show a banner. It takes the answer from your banner and changes how Google Ads and GA4 tags behave. Version 2 added two signals, so there are four:

SignalWhat it controls
ad_storageAd cookies
analytics_storageAnalytics cookies
ad_user_dataUser data sent for ads (new)
ad_personalizationRemarketing and personal ads (new)

Why it matters: Google says you “must collect consent for use of personal data from end users based in the EEA and share consent signals with Google.” That is the condition for keeping measurement, ad personalization and remarketing for that traffic. Google announced these upgrades in January 2024 and asked advertisers to act before March 2024. Shopify’s help says the same: EEA data “won’t be used for personalized advertising unless Google Consent Mode v2 is activated and valid consent is obtained.”

With the Google & YouTube app, it is mostly automatic

If GA4 and Google Ads run through the free Google & YouTube app, you don’t add any code. Google’s help page for Shopify says: “After you’ve enabled your consent banner, consent mode is enabled automatically.” A consent app works too, if it connects to Shopify’s Customer Privacy API.

Here is how it plays out. In banner regions, Shopify holds the app’s pixel until the visitor accepts analytics and marketing. Then the pixel runs and sets all four signals. Shopify staff described this flow on Shopify’s developer forum. It is close to what Google calls basic consent mode: Google gets nothing before a choice.

With GTM or code in your theme, you do the work

If you load Google Tag Manager or a Google tag yourself, the Shopify banner can’t hold it. For a custom pixel, Shopify says you must “manually insert a code snippet to activate Google Consent Mode v2.” This is where I see most broken setups: an old tag in the theme still fires before anyone clicks.

Consent Mode v2 on Shopify: how the cookie banner, Customer Privacy API and app pixels pass consent to Google and Meta
The choice goes from the banner to the Customer Privacy API, then to each app pixel.

How the Meta pixel follows the same choice

There is no separate Meta consent setting to switch on. On Shopify, the Meta pixel from the Facebook & Instagram app is an app pixel, and Shopify decides when it runs. In consent regions, Shopify says “web pixels run only when visitors have provided the permissions required in the pixel configuration.”

The server side follows the same rule. The Conversions API is a server pixel, and Shopify says server pixels “are still subject to your store’s customer privacy and consent settings.”

To see what a pixel needs, go to Settings, then Customer events, open its menu, and choose View customer privacy. The app maker sets these, and you can’t change them. If Meta events look low after you turn on the Shopify cookie banner, read my guide to a Shopify Meta pixel not working first.

The 2-minute test: does your cookie consent really work?

A banner on screen is not proof. Run these four checks from an EU or UK location. Outside Europe? Use a VPN set to an EU country, or add your own country to the regions for the test and remove it after.

Test 1: Open a private window

Open your store in a private window. The Shopify cookie banner should appear on the first page. A private window has no saved choice, so you see what a new visitor sees.

Test 2: Read the choice in the console

Right-click the page, choose Inspect, and open the Console tab. Chrome may ask you to type allow pasting first. Paste this and press Enter:

Shopify.loadFeatures([{ name: 'consent-tracking-api', version: '1.0' }], function (error) {
  if (error) { console.log('Could not load the Customer Privacy API', error); return; }
  var cp = Shopify.customerPrivacy;
  console.log('Region:', cp.getRegion());
  console.log('Banner should show:', cp.shouldShowBanner());
  console.log('Your choices:', JSON.stringify(cp.currentVisitorConsent()));
  console.log('Analytics allowed:', cp.analyticsProcessingAllowed());
  console.log('Marketing allowed:', cp.marketingAllowed());
});

Before you click, the choices are empty and Analytics allowed is false. Click Accept and run it again. Each choice should now say “yes”. After Decline, they should say “no”. The code only reads values, so it is safe on a live store.

Test 3: Check Consent Mode v2 signals in Tag Assistant

  1. Open Google Tag Assistant and enter your store’s address.
  2. Accept the banner on your store. If Tag Assistant said Could not connect before that, it is normal. Google tags were waiting for consent.
  3. In the Summary, open the latest Consent event and check that all four signals are there.
  4. In the Consent tab, On-page Update should say Granted.

Then repeat it after a Decline. Nothing should switch to Granted.

Test 4: Check the Meta pixel

Go to Settings, then Customer events, and click Test next to the Facebook & Instagram pixel. Before you accept, the Shopify Pixel Helper may say Pixel is awaiting consent. That is the right result. Accept the banner, and events should arrive.

Consent Mode v2 test for a Shopify cookie banner: Tag Assistant consent states and browser console results
Before a choice: nothing granted. After Accept: all four Google signals say Granted.

In Google Ads, the consent status on a conversion’s Diagnostics tab can take 48 hours to show. Google says it can take up to two weeks. Trust Tag Assistant first.

Common Shopify cookie banner problems and fixes

Most problems come from testing in the wrong place, or from two tools doing one job.

The banner is not showing

  • You are outside the regions. By default, visitors in the US or Asia won’t see it. Use a VPN.
  • You already chose. A saved answer hides it. Use a private window.
  • No privacy policy. Publish one and check again.
  • You removed it for an app. After Remove cookie banner, Shopify’s banner stays off.

The banner keeps popping up

If it returns on every page, the choice is not saved. Choices are stored per domain, so keep shoppers on your main domain, not your .myshopify.com address. If it shows again on order pages, Shopify says your customer account domain should be a subdomain of your store, like account.example.com. Also test without extensions that clear cookies. Using an app? Ask the maker if it syncs with the Customer Privacy API.

Two cookie banners at once

This happens when a consent app is installed and Shopify’s banner is still on. Go to Settings, then Customer privacy, click Cookie banner, and click Remove cookie banner if you see it. Then select the same regions your app uses. Shopify warns that if regions don’t match, “non-essential data can be processed before a visitor provides consent.”

Sessions dropped in reports

This is expected. Shopify says banner regions can show “decreased session counts” and lower conversion rates in reports. Your orders are still recorded. You just see less about visitors who declined.

SymptomLikely causeFix
No bannerWrong region or saved choicePrivate window + VPN
Banner on every pageChoice not savedCheck domain and app sync
Two bannersApp + Shopify bannerRemove one, match regions
Tags fire before a clickCode in theme or GTMUse the app or a custom pixel
Fewer sessionsVisitors declinedNormal

Old scripts in your theme also slow your store. My Shopify speed optimization guide shows how to find them, and my free Shopify store checker gives a quick health check.

Shopify’s free banner or a cookie consent app?

For most small stores, the free banner is enough if all tracking runs through Customer events. A paid cookie consent app, often called a CMP (consent management platform), helps in a few cases.

NeedShopify bannerConsent app
PriceFreeOften monthly
App and custom pixelsYesYes, if synced
Scripts in the themeNoOften yes
Consent logLast 30 daysVaries
IAB TCFNoSome apps

Pick an app when:

  • You have tags outside Customer events, like GTM or a chat widget.
  • You need longer records. Shopify’s consent log covers 30 days.
  • You want advanced consent mode, where Google tags send cookieless pings while consent is denied.
  • You show ads from ad networks. That is what the IAB TCF is mainly for. Since January 16, 2024, Google has required a certified TCF tool for AdSense, Ad Manager and AdMob ads to EEA and UK users. A store that only buys ads rarely needs it.

Whatever you pick, run one banner and make sure it syncs with Shopify. For other pre-launch settings, see my Shopify launch checklist.

Frequently asked questions

Does Shopify have a built-in cookie banner?

Yes. It is free and lives under Settings, then Customer privacy, then Cookie banner. New stores with EU or UK markets usually have it on by default.

Does the Shopify cookie banner support Consent Mode v2?

Yes, for Google tags that run through the Google & YouTube app. Google says consent mode turns on automatically once the banner is on. Tags added with GTM or theme code need their own setup.

Why is my Shopify cookie banner not showing?

You are likely outside the banner regions, or you already made a choice. Test in a private window with a VPN set to an EU country. Check that your privacy policy is published.

Why does my Shopify cookie banner keep popping up?

The choice isn’t saved. Keep shoppers on one main domain, test without cookie-clearing extensions, and check that any consent app syncs with Shopify.

How do I disable the Shopify cookie banner?

Go to Settings, then Customer privacy, then Cookie banner, and remove it or change the regions. Only do this if another tool asks for consent where it is needed.

Do I need a cookie consent app for Shopify GDPR?

Not always. Shopify’s banner covers Shopify cookies and pixels in Customer events. You may need an app if you load tracking code in your theme. Ask a privacy lawyer which rules apply to you.

Getting consent right protects your ad data as much as your shoppers. For more practical guides, see my Shopify tips. If you want someone to set up and test your banner and tracking, I do this in my Shopify store management service. Message me on WhatsApp and I will take a look.

Zobaer Hossain, Shopify designer

Written by Zobaer H.

Shopify Select Partner with 10+ years of experience and 5,000+ clients. I design and build Shopify stores, and I write these guides from real client work.

Shopify Select Partner badge

In this guide

    ★★★★★ 4.9 from 1,350+ client reviews

    Let's start

    Ready to start your store?

    Send me your idea or store link. I'll reply with honest advice and a fixed quote.

    ✓ Free quote✓ Fixed price✓ You own everything