Google Consent Mode
Google Consent Mode is a technology that controls how Google tags (Analytics, Ads) behave based on the visitor's cookie consent. It keeps you privacy compliant without losing all of your tracking data.
What is Consent Mode?
Google Consent Mode (version 2) is a system that lets you adjust Google's tracking tags based on each visitor's cookie choices. When a visitor declines cookies, Consent Mode still sends anonymized "pings" to Google, which are used for statistical modeling. That way you don't lose all insight, even when the visitor says no.
How does it work?
Consent Mode controls four consent types:
- analytics_storage: Permission to store analytics cookies (Google Analytics).
- ad_storage: Permission to store advertising cookies (Google Ads, remarketing).
- ad_user_data: Consent to send user data to Google Ads.
- ad_personalization: Consent to use data for personalized ads.
All four are set to "denied" by default for EU/UK visitors. When the visitor gives consent in the cookie banner, the states are updated to "granted".
Consent Mode v2: what's new?
Since March 2024, Google has required Consent Mode v2 for using remarketing and audiences in Google Ads. The new fields ad_user_data and ad_personalization are mandatory. Without Consent Mode v2, you lose access to:
- Remarketing audiences in Google Ads.
- Conversion modeling in Google Ads.
- Audience features in GA4.
Basic vs. advanced implementation
- Basic: Google tags don't load at all until the visitor gives consent. It's simple, but you lose all data from visitors who decline.
- Advanced: Google tags always load, but in a restricted "cookieless" state until consent is given. Google uses anonymized pings for statistical modeling, so you get estimated figures for the visitors who declined. This is the recommended approach.
Statistical modeling
When Consent Mode is implemented in advanced mode, Google uses machine learning to estimate the conversions and sessions that couldn't be tracked directly because consent was missing. This gives you a more complete picture of your traffic and ad performance, typically 10-30% more data than without modeling.
Consent Mode in Shoporama
Shoporama fully supports Google Consent Mode v2:
- Automatic integration: Shoporama's built-in cookie consent pop-up automatically sends consent signals to Google via
gtag('consent', 'update', ...). - Cookie categories: Necessary, statistics, and marketing, mapped directly to Google's consent types.
- Activation: You turn on Consent Mode in your tracking settings in the admin.
- Region-specific: Stricter default settings for EU/UK visitors, as required by GDPR.
- DataLayer events: Shoporama sends
cookie_consent_updateevents, which you can use for advanced GTM setups.
How to do it in Shoporama
Guides that show the term in practice
Cookie consent banner and Google Consent Mode v2
How to set up Shoporama's free cookie consent app: cookie categories, automatic blocking, withdrawing consent, and...
GDPR and cookie consent rules for your online store
An overview of the GDPR and cookie rules for online stores: consent before tracking, documentation, and a cookie...
HTML fields: add Cookiebot, GTM, and other scripts to your store
How to use HTML fields in Shoporama to add Cookiebot, Google Tag Manager, Facebook Pixel, chat widgets, and other...
We know online marketing at Shoporama
We have worked with online marketing ourselves for decades. As the only e-commerce platform in Denmark, we have spoken several times at conferences such as Marketingcamp, SEOday, Shopcamp, Digital Marketing, E-commerce manageren, Ehandelsdagen, Web Analytics Wednesday, and many more.