Google Consent Mode v2 & EEA/UK Cookie Banner Setup
3 min read · Last updated
Google requires Google Consent Mode v2 for stores advertising to shoppers in the European Economic Area (EEA), the United Kingdom, and Switzerland in order to preserve remarketing audiences and conversion modeling.
OneClick: Google Ads Tracking supports Google Consent Mode v2 natively out of the box — with zero custom Google Tag Manager scripts required.
How OneClick Syncs Consent Automatically
OneClick integrates directly with Shopify’s native Customer Privacy API (Shopify.customerPrivacy) and listens to live visitorConsentCollected events in real time:
| Shopify Customer Privacy Signal | Google Consent Mode v2 Parameters Controlled |
|---|---|
marketingAllowed | ad_storage, ad_user_data, ad_personalization |
analyticsProcessingAllowed | analytics_storage |
- Before or Without Consent (
denied): OneClick sets consent flags todeniedprior to firing measurement requests and writes zero first-party attribution cookies (_ocg_click/_gcl_*) when marketing consent is not granted. - When Shopper Accepts (
granted): As soon as a shopper accepts marketing/analytics cookies on your banner, OneClick immediately updates Google’s consent state without requiring a page reload.
How to Configure Your Shopify Cookie Banner (2 Minutes)
To ensure shoppers in regulated regions see a compliant banner that feeds Shopify.customerPrivacy:
- Using Shopify’s Built-In Free Cookie Banner (Recommended):
- Go to Shopify Admin → Settings → Customer privacy → Cookie banner.
- Select the regions where you advertise (such as European Union, United Kingdom, and Switzerland) and activate the banner.
- Using a Third-Party Consent App (Pandectes, Consentmo, Cookiebot, Axeptio, etc.):
- Enable the app’s Shopify Customer Privacy API integration in its settings. Because OneClick reads Shopify’s native
customerPrivacystate, any Shopify-compliant CMP app works automatically with OneClick.
- Enable the app’s Shopify Customer Privacy API integration in its settings. Because OneClick reads Shopify’s native
Do I Need to Configure Consent Inside Google Tag Manager?
No. OneClick handles Consent Mode v2 signaling directly on both the Zero-Paste Storefront Tag and the Custom Pixel architectures. Running a separate GTM container for the same Google Ads conversion action is unnecessary and can cause duplicate conversion counts if both fire Purchase events.