Google Consent Mode V2 offers a sophisticated method to manage user consents for cookies and data collection, this method uses conversion modeling, leveraging Google’s AI to address gaps in conversion data resulting from user cookie rejections. Modeled conversions are derived from data that doesn’t depend on identifiable signals. Instead, it incorporates information such as device type, conversion types, country, time of day, or browser types to simulate the behavior of users who decline analytics cookies. This modeling is based on the actions of comparable users who accept analytics cookies. The goal is to provide your business with extra insights, enhancing reporting, attribution, and bidding strategies.
Consent Mode V2 is needed to leverage the modeling under the new guidelines, and when not used can cause substantial data loss after March 2024. The main difference is the addition of new consent states:
- ad_user_data is used to determine whether the user gives consent for Google’s advertising purposes.
- ad_personalization controls whether data can be used for ads personalization (e.g. for remarketing).
Enabling it for Shopify
First of all; do you need Consent Mode V2 enabled? Our advanced website scan will trigger our app to enable Consent Mode V2 automatically if any technologies found on your website could take advantage of Consent Mode V2, the obvious one being Google Analytics 4 of course. If you want to know if it’s enabled; or you want to enable it manually go to settings – banner settings and you will find:

This will enable Complianz’ certified Consent Mode V2. It automatically connects to the Shopify Customer Privacy API for full consent coverage. Below you can choose 2 different settings.
Basic Mode (Deactivated)
-
Google tags (like Analytics or Ads) are completely blocked until the user gives consent.
-
This means no data is sent to Google before consent.
-
It’s the simplest and most privacy-focused setup — easy to implement but offers less insight if users don’t consent.
Advanced Mode
-
Google tags are loaded right away, but they adapt depending on the user’s consent choices.
-
If the user doesn’t consent, data is sent in a limited, anonymous way (for example, no cookies or personal data).
-
This allows Google to still provide some measurement and modeling, even without consent.
Does it work with Google & YouTube for Shopify?
Yes, Complianz’ Consent Mode V2 works with Google & Youtube for Shopify. No further configuration is needed.
Debugging Google Consent Mode
Use below snippet (https://gist.githubusercontent.com/AertHulsebos/efc1923931ba1afc47d2510af769a69e/raw/3ff987f5529166c075552a7da96ef75cdc08ebe6/consentmodelog.js) in your browser console; and check to see the current consent state of the Google data layer that is mapped to Complianz.
(() => {
l = s => s == undefined ? "" : s ? "granted" : "denied";
c = s => s == "granted" ? "color: #29b6f6": "color: #C00";
if (!"google_tag_data" in window) {
console.log("No Consent Mode data found, please check your Complianz settings.");
return;
}
var g = google_tag_data.ics.entries, i = "", t = "", u = "";
for (var a in g) {
i = l(g[a]['initial']);
u = l(g[a]['update']);
if (i == "" && u == "") continue;
t = ("\t" + a + ":" +
(i != "" ? "\n\t\tDefault: %c" + i : "%c") + "%c" +
(u != "" ? "\n\t\tUpdate: %c" + u : "%c"));
console.log(t, i != "" ? c(i) : "", "", u != "" ? c(u) : "", "");
}
if (i == "") console.log("");
})()
