Using Google Consent Mode v2 with Shopify

Updated on 2024-03-15

Google Consent Mode v2  is the latest version of Google Consent mode, that allows web and app developers to limit data collection on user consent choices.

From March 2024, all advertisers wanting to run personalized Google Ads to users in Europe must use Consent Mode v2.

You can read more about Consent Mode on Google.

Littledata integrates automatically and seamlessly with Consent Mode v2 via Shopify Customer Privacy API. This includes Advanced Consent Mode, sending cookieless pings to Google servers even if the user does not accept consent, so Google can better model and predict your non-consenting traffic.

Most Shopify cookie banners and some Consent Management Platforms (CMPs) support this Customer Privacy API.

note:

For Consent Mode to work you must have a cookie banner. You can set it up from your Shopify Admin by going to Settings -> Customer Privacy -> Cookie Banner, or use another banner app that is compliant with Shopify Customer Privacy API.

Shopify’s Customer Privacy API supports four consent types.Google Consent Mode v2 tracks customer consent as four different properties, which switch their state depending on the preferences that the customer has chosen within the Shopify cookie banner or CMP:

Google Consent Mode ParameterShopify Consent Type
ad_storage = grantedmarketing = yes
ad_user_data = grantedmarketing = yes
ad_personalization = grantedmarketing = yes
analytics_storage = grantedanalytics = yes

The first 3 parameters (those that pertain to advertising) will change their status when marketing consent is accepted or denied, while the last parameter will change based on analytics consent.

Depending on what the user has accepted or declined, a consent update could look like this:

Consent Mode parameters

Consent Mode v2 adds 2 new parameters to the consent states, those being:“ad_user_data” and “ad_personalization”.

Unlike Basic Consent Mode, which only allows data collection from users who explicitly grant consent, the Advanced Mode collects data from users who do not grant explicit consent, thus enabling a more comprehensive data collection process.

Basic consent mode vs advanced consent mode

Advanced Consent Mode comes with the added ability to model data, which can provide more precise insights into user behavior. This modeling is designed to work while still maintaining user privacy, ensuring that all data collected complies with privacy regulations.

This modeling includes Google Ads consent mode modeling, Google Ads online modeling, Google Analytics conversion modeling, and Google Analytics behavioral modeling.

Modeled data in GA and Google Ads

With Advanced Consent Mode store owners can rest assured that their tracking efforts are in line with privacy standards while still being able to obtain valuable information about their users. This is a significant step forward in data tracking and privacy.