Consent Mode v2 on Shopify: what data reaches Google and how to control it

For a store that sells in the European Union and uses Google Ads or Google Analytics 4, the cookie banner is part of the measurement infrastructure. How it is configured determines what data Google receives and how well campaigns can be measured and optimised.

Person working on a laptop in the evening.

What Consent Mode is

Google Consent Mode is the mechanism through which a website tells Google tags what the visitor has chosen about cookies. GA4 and Google Ads tags then adjust their behaviour: they use cookies and send full data only for the categories that were accepted.

It works in two steps. Before any choice is made, the site sets a default state, usually “denied” for all optional categories. Once the visitor chooses, the banner sends an update with the new state.

What Google has required since 2024

Since March 2024, Google has enforced its policy on the consent of users in the European Union more strictly. For traffic from the European Economic Area, its platforms expect the site to pass on each visitor’s choice explicitly, through Consent Mode v2.

Version 2 added two signals:

  • ad_user_data: whether the visitor’s data may be sent to Google for advertising purposes;
  • ad_personalization: whether the data may be used for personalised advertising, such as remarketing.

If these signals are missing or are sent too late, features such as remarketing audiences and conversion measurement may be limited.

The seven signals, by category

Consent Mode v2 uses seven signals. A well-built banner groups them into categories that visitors can understand:

CategorySignalsWhat it allows
Strictly necessarysecurity_storageStore functionality and security. Always active.
Preferencesfunctionality_storage, personalization_storageKeeping settings between visits, such as language.
Statisticsanalytics_storageGA4 cookies for returning visitors and sessions.
Marketingad_storage, ad_user_data, ad_personalizationAd attribution, enhanced conversions, remarketing.

Each category controls only its own data flow. If a visitor accepts statistics and declines marketing, Google Analytics can measure the visit, while the data intended for advertising stays blocked.

Cookie preferences window with four categories, in an online store.
Preferences by category, as a visitor to an online store sees them.

From choice to data

In short, a visitor’s choice travels as follows:

  1. The visitor choosesAccepts, declines or chooses by category, on the first visit.
  2. The banner sends the signalsThe state of each category reaches Google before the tags.
  3. The tags respect the choiceGA4 and Google Ads use only the permitted categories.

Example: statistics accepted, marketing declined

  • analytics_storagegranted
  • ad_storagedenied
  • ad_user_datadenied
  • ad_personalizationdenied

What to check in a store

A few questions show whether a store passes on consent correctly:

  1. Do Google tags fire before the visitor has chosen? The default state must be set before GA4 or Google Ads load.
  2. Does the banner offer separate categories? Two buttons, “Accept” and “Decline”, do not allow consent by category.
  3. Can the visitor withdraw consent later? Withdrawal must be as easy as giving consent, under Article 7(3) of the GDPR.
  4. Do two banners appear at the same time? This usually happens when Shopify’s native banner stays active alongside an app.

On Shopify

Consentia was built for this setup: a consent banner for Shopify that sends all seven Consent Mode v2 signals, by category, before Google tags load. Details are on the Google Consent Mode page.

Source for Google’s requirements: Google Tag Manager Help.

Consent, taken seriously.

Consentia is available on the Shopify App Store. For more information, write to us.