BrainSpate Logo
  • Services
    • Services
    • Salesforce iconSalesforce Development
    • BigCommerce iconBigCommerce Development
    Smart Commerce Solutions
    • eCommerce Development iconeCommerce Development
    • B2B eCommerce iconB2B eCommerce
    • eCommerce Website Design iconeCommerce Website Design
    • B2C eCommerce iconB2C eCommerce
    • eCommerce Marketplace iconeCommerce Marketplace
    • Headless Commerce iconHeadless Commerce
    • eCommerce Implementation iconeCommerce Implementation
    • eCommerce Consulting iconeCommerce Consulting
    • eCommerce Migration iconeCommerce Migration
    • eCommerce Management iconWhite Label eCommerce Development
    • eCommerce Maintenance iconeCommerce Maintenance
    • eCommerce Website Packages iconeCommerce Website Packages
    • eCommerce Portal DevelopmenteCommerce Portal Development
    • eCommerce IntegrationeCommerce Integration
    End-to-End Shopify Development
    • Shopify Development iconCustom Shopify Development
    • Shopify Plus Development iconShopify Plus Development
    • Shopify Integration iconShopify Integration
    • Shopify Migration iconShopify Migration
    • Shopify Theme Development iconShopify Theme Development
    • Shopify App Development iconShopify App Development
    • Shopify Speed Optimization iconShopify Speed Optimization
    • Shopify Maintenance iconShopify Maintenance
    • headless shopify developmentHeadless Shopify Development
    • shopify consulting menu iconShopify Consulting Services
    • Shopify Development iconShopify Development India
    • shopify label iconWhite Label Shopify Development
    Migrate Safer, Faster
    • Magento to Shopify MigrationMagento to Shopify Migration
    • PrestaShop to Shopify MigrationPrestaShop to Shopify Migration
    • WooCommerce to Shopify MigrationWooCommerce to Shopify Migration
    • Volusion to Shopify MigrationVolusion to Shopify Migration
    • BigCommerce to Shopify MigrationBigCommerce to Shopify Migration
    • WordPress to Shopify MigrationWordPress to Shopify Migration
    • OpenCart to Shopify MigrationOpenCart to Shopify Migration
    • Magento to WooCommerce MigrationMagento to WooCommerce Migration
    • Shopify to WooCommerce MigrationShopify to WooCommerce Migration
    Unify Your Commerce
    • Shopify NetSuite Integration iconShopify NetSuite Integration
    • Shopify Amazon Integration iconShopify Amazon Integration
    • Shopify QuickBooks Integration iconShopify QuickBooks Integration
    • Shopify Salesforce Integration iconShopify Salesforce Integration
    • Shopify HubSpot Integration iconShopify HubSpot Integration
    • Integration iconShopify Zendesk Integration
    • shopify ERP integrationShopify ERP Integration
    • Shopify Etsy integrationShopify Etsy Integration
    • shopify klaviyo integrationShopify Klaviyo Integration
    Smart Commerce Solutions
    • WooCommerce Development iconWooCommerce Development
    • WooCommerce Migration iconWooCommerce Migration
    • WooCommerce Speed Optimization iconWooCommerce Speed Optimization
    • Support and Maintenance iconWooCommerce Maintenance
    • shop iconWooCommerce Theme Development
    Future-Ready Magento Commerce
    • Magento Development iconMagento Development
    • Magento Migration iconMagento Migration
    • Magento Integration iconMagento Integration
    • Magento Upgrade iconMagento Upgrade
    Phone
    Mobile+1 803 310 2526
    Email
    Email Ussales@brainspate.com
  • Hire Developers
    Hire eCommerce Developers
    • Shopify iconHire Shopify Developers
    • Magento iconHire Magento Developers
    • WooCommerce iconHire WooCommerce Developers
    Phone
    Mobile+1 803 310 2526
    Email
    Email Ussales@brainspate.com
  • Industries
    Industries
    • Fashion iconFashion
    • Food iconFood
    • Healthcare iconHealthcare
    • Automotive iconAutomotive
    • Electronics iconElectronics
    • Home Furniture iconHome Furniture
    • Sports Fitness iconSports Fitness
    • Jewelry iconJewelry
    • E Learning iconE-Learning
    Phone
    Mobile+1 803 310 2526
    Email
    Email Ussales@brainspate.com
  • Portfolio
  • About Us
    About Us
    • Testimonials iconTestimonials
    • Infrastructure iconInfrastructure
    • Culture Values iconCulture & Values
    • Career iconCareer
    • Life at Brainspate iconLife At BrainSpate
    • Blog iconBlog
    Phone
    Mobile+1 803 310 2526
    Email
    Email Ussales@brainspate.com
  • Contact Us
  • Shopify

Google Consent Mode v2 for Shopify: Setup and Testing Guide

Sahil Patel
Sahil Patel
Shopify Expert, BrainSpate
Last Updated On November 16, 202616 min read

Quick Summary

  • Consent Mode v2 passes each visitor’s cookie choice to Google tags through four consent signals.
  • Skipping it limits ad features in the EEA and UK and weakens your conversion data.
  • Basic mode blocks Google tags until consent, while Advanced mode sends cookieless pings first.
  • You can set it up with Shopify’s banner, a consent app, or Google Tag Manager.
  • Test with your real banner, read the gcs parameter, and repeat the checks at checkout.
Summarize with AI:
  • ChatGPT
  • Perplexity
  • Claude.ai
  • Grok
  • Google AI Mode

You open Google Ads one morning and see a warning about missing consent signals. Or your EU conversions have dropped, and nobody on the team can say why. A common cause is that Google isn’t getting a clear answer about what your visitors agreed to.

Google Consent Mode v2 for Shopify fixes that. It passes each visitor’s cookie choice to your Google tags, so Google Ads and Analytics know what they’re allowed to collect.

This guide is for Shopify store owners and marketers who run Google Ads or GA4 and get visitors from the EEA or UK. You’ll learn how it works, three ways to set it up on your store, and how to check that it’s working.

What Is Google Consent Mode v2?

Google Consent Mode v2 is a way for your website to tell Google what each visitor agreed to. Google’s tags then adjust what they collect to match. If someone says no to ad cookies, the tags stop using them. If someone says yes, they work as normal.

Google built it in response to the Digital Markets Act, which put more pressure on big platforms to respect user choices in the EU.

The flow is simple. A visitor lands on your store and sees a cookie banner. They make a choice, and your site passes that choice to Google. The tags read it and act on it.

What changed in v2?

The first version used two signals. Version 2 added two more, so Google now gets a more detailed picture of what the visitor allowed.

SignalWhat it controlsExample on a Shopify store
analytics_storageWhether analytics cookies can be storedGA4 recording a session
ad_storageWhether advertising cookies can be storedGoogle Ads linking a click to a purchase
ad_user_dataWhether user data can be sent to Google for advertisingSharing purchase details for ad measurement
ad_personalizationWhether the visitor can be shown personalized adsAdding a visitor to a remarketing list

Each signal is set to either granted or denied. The last two, ad_user_data and ad_personalization, are the new ones.

Google products that use these signals are Google Analytics 4, Google Ads (conversion tracking and remarketing), Floodlight, and Conversion Linker. Tags that load through Google Tag Manager or gtag.js read them too.

Why Does Google Consent Mode v2 Matter for Shopify Stores?

Since March 2024, Google has required the v2 signals from stores that use its advertising features with visitors from the EEA and UK. The reason is the law there. GDPR and the ePrivacy rules require a visitor’s opt-in first, and Google wants proof that you collected it.

Below is what’s at stake for your store.

1. You lose ad features in the EEA and UK

Skipping it won’t get your account suspended, but it limits what you can do. Without Consent Mode v2, EEA traffic is restricted to limited ads, which switches off audience targeting, remarketing, and conversion tracking.

2. Your numbers get worse, and so do your bids

When visitors decline cookies, Google can estimate the conversions it can’t track directly, but only if it receives proper consent signals. Without them:

  • Those estimates never start.
  • Reported ROAS drops for those regions.
  • Smart Bidding has less data to learn from.
  • You end up judging campaigns on incomplete numbers.

3. Shopify spreads the risk across your store

Tracking comes from your theme, apps, pixels, and checkout. One consent signal that’s wrong or late can quietly affect all of them. That’s why Google Consent Mode v2 on Shopify needs more care than pasting a script into one file.

4. Since June 2026, mistakes go straight to your ad account

Since June 15, 2026, Consent Mode has been the sole control over data flowing between GA4 and Google Ads, and the Google Signals toggle no longer has a say. Before that date, a switched-off Signals setting worked as a safety net. If your banner was misconfigured, the data might still have been held back. That safety net is gone.

A mistake in your Google Consent Mode v2 Shopify setup can now go wrong in two ways:

  • Data reaches Google without the visitor’s permission.
  • Data you were allowed to use gets blocked.

Get it right, and you keep useful measurements while respecting what each visitor chose.

Not sure your current setup is sending the right signals? You can hire Shopify developers to set up and test Google Consent Mode v2 for you.

Basic vs. Advanced Consent Mode

Google Consent Mode v2 runs in two modes. They differ in one thing: what your Google tags do before a visitor answers the banner.

Comparison CriteriaBasic Consent ModeAdvanced Consent Mode
Google tagsBlocked until the visitor decidesLoad straight away, with consent set to denied
Data sent before a choiceNone, not even the consent stateConsent state and cookieless pings
After the visitor acceptsTags load and send full dataCookies are written, and full data is sent
Conversion modelingGeneral modelAdvertiser-specific model

This follows Pandectes’ comparison, where Basic blocks tags until the visitor interacts with the banner, while Advanced loads tags with consent denied and sends cookieless pings.

What a cookieless ping contains

When a visitor denies the relevant storage consent, Google tags can send measurement pings without using advertising or analytics cookies. These pings may include information such as a timestamp, browser user agent, page referrer, consent status, an indicator of whether the page URL contains ad-click information (such as GCLID or DCLID), and a randomly generated number for each page load. Google uses these signals to model conversions and key events that cannot be measured directly through cookies.

Which one is safer?

The experts disagree, so here are both views:

  • Google’s view: Advanced gives more accurate measurement, and Basic is better than having no consent mode at all.
  • The cautious view: Consentmo argues that EU stores should be careful with Advanced mode, because pings can still count as personal data under GDPR if they can be combined with other data to identify someone.

Neither side is wrong, because this is a legal question. Ask your legal advisor before choosing Advanced Consent Mode on a Shopify store with EU visitors.

Choose Basic if your legal advisor wants nothing sent to Google before a visitor consents. Choose Advanced if measurement accuracy matters more to you, and your advisor is comfortable with cookieless pings.

How Does Shopify’s Customer Privacy API Relate to Consent Mode V2?

Think of it as two jobs. The Customer Privacy API is Shopify’s record of what a visitor chose. Consent Mode v2 carries that choice to Google. Your banner needs both, or the choice never reaches the tools that use it.

What the API does

  • It’s a browser-based JavaScript API, available as window.Shopify.customerPrivacy.
  • Your banner writes the visitor’s choice into it.
  • Shopify uses it to apply consent decisions across Shopify-managed surfaces such as pixels, audiences, and checkout.
  • It tracks four categories: analytics, marketing, preferences, and sale of data.

How the categories map to Google’s signals

Shopify doesn’t send anything to Google on its own. Your consent app does the translation. A typical mapping looks like this:

Shopify categoryGoogle signals it usually controls
Marketingad_storage, ad_user_data, ad_personalization
Analyticsanalytics_storage
Preferences, sale of dataNone of the four

Apps differ in how they map these, so check your app’s documentation. This is where most setups break.

The three calls to know

  • setTrackingConsent() saves the visitor’s choice. Your banner calls it.
  • currentVisitorConsent() reads the saved choice. A blank value means the visitor hasn’t answered yet.
  • The visitorConsentCollected event fires when consent changes, so other scripts can react.

Why a banner that skips the API is a risk

If your banner never writes to the API, Shopify’s own pixels and checkout don’t know the visitor’s choice. Your Google tags may follow the banner while Shopify’s tools ignore it. That’s the main reason to pick a consent app built for Shopify’s API.

How to Set Up Google Consent Mode v2 for Shopify

There are three ways to do this. Pick one, and only one. Running two at the same time is the most common cause of broken consent signals.

Before you start, have these ready:

  • Admin access to your Shopify store
  • A Google tag or a Google Tag Manager (GTM) container
  • A privacy policy you can edit

Method 1: Shopify’s built-in banner

This is the quickest route, and it needs no code.

  1. In your Shopify admin, go to Settings > Customer privacy.
  2. Open the Cookie banner section and set it up.
  3. Choose the regions where the banner should show. At a minimum, pick the EEA and the UK.
  4. Adjust the look and position, then activate it.
  5. Install the Google & YouTube app and connect your Google account if you haven’t.

Google says consent mode is enabled automatically once the banner is on. That makes this the right pick if you want a working setup today. The catch is control. If you need to pick Basic or Advanced yourself, use Method 2 or 3.

Method 2: A consent management app

Apps give you more banner options and direct control over how Consent Mode behaves. Pandectes, Consentmo, CookieYes and Complianz all offer a Shopify Google Consent Mode integration.

  1. Install the app and switch on its app embed in the theme editor.
  2. Open the app’s Google Consent Mode setting and turn it on. In Pandectes, for example, this sits under Apps > Pandectes GDPR > Integrations > Google Consent Mode.
  3. Save, then check the banner on your live store.

Most apps send all four signals automatically. Pandectes does this and defaults to Advanced mode. Whichever app you choose, turn off any other banner first. That includes Shopify’s built-in one and any banner in your theme.

Method 3: Google Tag Manager

This route is for developers and agencies that need control over consent configuration. If you’re using GTM, implement Consent Mode through a consent management platform (CMP) template or a custom GTM template. Don’t paste the gtag() consent commands into a Custom HTML tag in GTM. Google recommends using GTM’s dedicated consent APIs instead.

  • Step 1. Set the default state. In Google Tag Manager, go to Templates > Tag Templates > New to create a custom consent template, unless your CMP already provides one.

In the template editor, open the Code tab and use GTM’s setDefaultConsentState API to establish the default consent values:

const setDefaultConsentState = require('setDefaultConsentState');
setDefaultConsentState({
  'ad_storage': 'denied',
  'ad_user_data': 'denied',
  'ad_personalization': 'denied',
  'analytics_storage': 'denied',
  'wait_for_update': 500
});

This example denies all four consent types until the visitor makes a choice. The wait_for_update setting gives an asynchronously loading consent management platform up to 500 milliseconds to provide the visitor’s saved preferences.

  • Step 2. Set regional rules if you need them. If your store displays a consent banner only in specific regions, you can add a region parameter to the default consent settings. For example, use [‘DE’, ‘FR’, ‘GB’] to apply the denied defaults to visitors from Germany, France, and the UK. Configure the regional rules according to the locations where consent is required.
  • Step 3. Send the update when the visitor chooses. Your consent management platform must pass the visitor’s actual preferences to the GTM template. Use GTM’s updateConsentState API to communicate those choices:
const updateConsentState = require('updateConsentState');

updateConsentState({
  'ad_storage': 'granted',
  'ad_user_data': 'granted',
  'ad_personalization': 'granted',
  'analytics_storage': 'granted'
});

This is an illustrative example in which the visitor has granted all four permissions. In a live implementation, replace these hardcoded values with the corresponding choices received from your consent banner. If a visitor rejects or withdraws consent, update the relevant signals to denied.

  • Step 4. Check each tag’s consent settings. In GTM, open each Google tag and review its consent settings. Confirm that the tags respect the appropriate consent signals and that the default consent state is established before measurement tags execute.

Which method fits you?

If you…Use
Want it live fast and have no developerMethod 1
Want control over banner design and regions without codeMethod 2
Have a developer or agency and need full controlMethod 3

Do these two things after any method:

  • Update your privacy policy to list the Google tools you use and what visitors can control.
  • Make sure the banner loads before your tags fire. A banner that sets consent late defeats the whole point.

Once your banner is live and your chosen method is in place, the setup is done, but you can’t yet tell whether the signals are reaching Google.

Setting up and testing consent configurations in Google Tag Manager can be technically challenging, especially when coordinating Shopify’s Customer Privacy API with Google tags. If you need expert guidance with the implementation, our Shopify consulting services can help you plan and address tracking, consent configuration, and integration requirements.

How to Test and Verify Google Consent Mode v2

A banner that looks right proves nothing. What counts is what Google receives. Test with your real banner and not by setting consent by hand in developer tools, because a manual test skips the very thing you need to check.

What you need

  • A private browser window, so old cookies don’t skew the result.
  • Chrome DevTools, opened with F12 and set to the Network tab.
  • Google Tag Assistant, which shows the consent state on each event.
  • GTM Preview mode, if you use Google Tag Manager.

Test 1: Before you touch the banner

Open your store in a fresh private window from a region where consent is required. Filter the Network tab for collect.

  • Advanced mode: a request fires right away with gcs=G100, meaning everything is denied. No _ga cookies should appear.
  • Basic mode: nothing is sent yet. That silence is correct, not a failure.

Test 2: Reject

Clear cookies, reload, and reject all. In Advanced mode, requests keep going with gcs=G100. In Basic mode, nothing fires.

Test 3: Accept

Click accept. The next collect request should show gcs=G111. If you only accept analytics, expect G101.

Test 4: Withdraw consent

Reopen the banner’s preferences and turn consent off. The next request should return to denied. Many setups pass the first three tests and fail this one.

How to read the parameters

GCS is a short code in the format G1xy, where x is ad storage, and y is analytics storage. A 1 means granted and a 0 means denied, so G100 is all denied, G111 is all granted, G101 is analytics only, and G110 is ads only.

GCS only covers those two original signals. The gcd parameter carries the full set, including ad_user_data and ad_personalization. If gcd is missing or shows fewer signals than you expect, your consent app may be sending version 1 only. Tag Assistant’s Consent tab is the easier way to decode it.

One limit to know about: Tag Assistant can’t tell Basic and Advanced apart, because both look identical there. Use the Network tab for that.

Check checkout too

Repeat Tests 1 to 3 on your cart and checkout pages. A Shopify Google Consent Mode v2 setup can work on product pages and fail at checkout if the banner never writes to the Customer Privacy API.

Troubleshooting

What you seeLikely causeFix
No gcs parameter at allThe default consent tag fires after the measurement tag, or not at allMove it to the Consent Initialization trigger
G111 before any clickDefaults are set to grantedChange the default to denied for regions that need consent
G100 after you acceptThe update command never firesCheck that your banner or GTM template sends the update
Only two signals in gcdThe consent app sends version 1 onlyUpdate the app or switch to one with v2 support
Signals change twice or behave oddlyTwo banners are runningTurn off every banner but one
Works on pages, fails at checkoutThe banner isn’t writing to the Customer Privacy APIUse an app built for Shopify’s API

Conclusion

Google Consent Mode v2 for Shopify comes down to two things: choosing the setup that matches your skills and your legal advice, and checking that Google receives what your banner promises.

This week, open your store in a private window and run the four tests. It takes about ten minutes, and it shows you whether your ad data is safe or quietly broken.

FAQs

1. Is Google Consent Mode v2 required for Shopify?

accordion-icon

It’s a Google requirement, not a Shopify one. It applies when you use Google’s ad or analytics features with visitors from the EEA or the UK. Shopify won’t block your store without it. The legal duty to ask for consent is a separate matter, set by privacy law in each region.

2. Does Shopify support Google Consent Mode v2?

accordion-icon

Yes. Shopify’s cookie banner works with the Google & YouTube app, and consent apps built for Shopify cover the rest. The options are laid out in the setup section above.

3. Does Google Consent Mode v2 replace a cookie banner?

accordion-icon

No. It carries a visitor’s choice to Google but doesn’t collect that choice. You still need a banner or consent app to ask. It also doesn’t make a store GDPR-compliant by itself.

4. Is Advanced Consent Mode worth it for a small store?

accordion-icon

Often not yet, because modeling has minimum traffic levels. Google Ads needs 700 ad clicks over 7 days for each domain and country grouping. GA4’s behavioral modeling needs at least 1,000 events a day with analytics storage denied, for at least 7 days. Below those numbers, Advanced mode still sends pings, but no estimates are added to your reports.

5. Does Google Consent Mode v2 work for Meta and TikTok?

accordion-icon

No. Consent Mode is a Google feature, so it only controls Google tags. Meta and TikTok pixels have their own consent settings. Make sure your consent app also handles them, or they may keep firing after a visitor says no.

Table of Content
  • What Is Google Consent Mode v2?
  • Why Does Google Consent Mode v2 Matter for Shopify Stores?
  • How Does Shopify’s Customer Privacy API Relate to Consent Mode V2?
  • How to Set Up Google Consent Mode v2 for Shopify
  • How to Test and Verify Google Consent Mode v2
  • Conclusion

Build a high-converting, scalable Shopify store tailored to your brand.

TALK TO OUR EXPERTS

Related Blog Posts

blog-image
user
Sahil Patel
November 12, 2026

Shopify One Page Checkout: A Complete Guide to Setup and Optimization

  • Technology
  • Shopify
13 min read
blog-image
user
Sahil Patel
November 13, 2026

10+ Best Shopify Speed Optimization Agencies

  • Technology
  • Shopify
14 min read
blog-image
user
Sahil Patel
November 06, 2026

How to Create a Shopify Staging Site for Safe Theme and App Updates

  • Technology
  • Shopify
12 min read
BrainSpate Logo

BrainSpate is a leading eCommerce development company that specializes in delivering high-quality online business solutions. We cater to businesses of all sizes and offer a range of eCommerce development services.

Our Expertise
  • eCommerce Website Development
  • Shopify Development
  • WooCommerce Development
  • Magento Development
  • Shopify Integration
  • Shopify Migration
Hire Developers
  • Hire eCommerce Developers
  • Hire WooCommerce Developers
  • Hire Shopify Developers
  • Hire Magento Developers
Contact Us
  • +1 803 310 2526
  • sales@brainspate.com
  • 919, City center 2 ,
    Science City Road,
    Ahmedabad - 380060, India.
  • 3520 Aria DR,
    Melbourne
    Florida, 32904, USA.
Countries We Serve
  • USA

  • Switzerland

  • Canada

  • Sweden

  • Australia

  • United Kingdom

© Copyright 2026 BrainSpate
  • All Rights Reserved
  • Privacy
  • Policies
  • Terms of Services
  • Sitemap