With an ever-growing interest in data protection, user consent and privacy are not just buzzwords, but essential components of any activity online. Google Consent Mode for Google Ads helps advertisers respect user privacy while running effective ad campaigns.
But what is Google Consent Mode? And why do you need to use it?
In this guide, we explain what Google Consent Mode is, why it’s important for Google Ads, and how it could benefit your marketing efforts. Let’s dive right in!
In Google Ads, Consent Mode is a framework that helps website owners gain more accurate insights into conversion data while honoring user consent preferences as legally required. Google Consent Mode allows you to adjust how your Google Tags behave based on your users’ consent status and helps you to gather data for non-consented users, at an aggregate level. Through conversion modeling, Google Consent Mode is able to recover up to 70% of reported conversion losses due to user consent choices.
Google Consent Mode adds two new tag settings that help manage advertising and analytics cookies: ad_storage
and analytics_storage
. These tags control the behavior of Google products based on the user consent choices, adjusting the conversion measurement accordingly:
This ensures that the website offers a higher level of data protection without completely losing the ability to track user interactions and campaign performance.
So far, the Google products which support Google Consent Mode are:
As Google specifies, Google Consent Mode isn’t suitable for all advertisers.
Google Ads Consent Mode is specifically designed for advertisers who serve ads to users in the European Economic Area or the UK, and who:
If this is your situation, then enabling Google Consent Mode may be beneficial for you and your business.
But please note: you need to meet a certain threshold for Consent Mode modeling to work. Google defines this threshold as follows:
The click threshold for conversion modeling is 700 ad clicks over 7 days for a domain x country grouping.
Absolutely. Under regulations like the GDPR, users must opt in to the use of non-essential cookies, which include those used for advertising purposes. Google Ads consent is critical as it directly impacts the effectiveness of your advertising efforts. Without proper consent, your ability to track conversions, retarget visitors, and personalize ads is significantly reduced.
Google Ads Consent Mode can help you recover conversion losses, but it doesn’t make your website compliant with privacy laws! You still need to add a cookie consent banner and implement the prior blocking of cookie scripts, as required by privacy laws.
Moreover, Google Consent Mode does not work with scripts that don’t belong to Google. For example, if you’re using the Facebook Pixel, you would need to block it before users give their consent.
There are many ways of prior-blocking cookies and other trackers. For example, you could do it manually. This method requires you to identify the scripts that are subjected to the requirement of prior consent. Then, the scripts must be manually modified, so they can be recognized, stopped, and then released depending on what the user chooses.
A much simpler way is to rely on solutions that allow you to automatically block cookie scripts, without coding. That’s what iubenda’s Autoblocking feature is for!
iubenda is a Google CMP Partner that helps you with cookie consent requirements: create your cookie consent banner, add a cookie policy and automatically block cookie scripts from running before consent. All this from a single dashboard!
iubenda’s CMP is Google-certified and comes with Google Consent Mode support, to help you maximize your ad revenue.
In order for the Google Consent Mode to work properly, you need to implement the correct Google consent setting. This will allow the Google services to behave based on the consent given by the user.
Google Consent Mode requires gtag.js or Google Tag Manager to run. Find out how to set up Google Tag Manager here.
"denied"
. If the consent is granted, the tags will be updated.You can learn more about Google’s consent setting in this guide by Google.
Google Consent Mode can be implemented both manually or through a Consent Management Platform (CMP).
A Consent Management Platform (CMP) is a platform designed to handle users’ consent preferences in a transparent and documented manner. To simplify the implementation of its Consent Mode, Google is partnering closely with a few Google-certified CMPs that are already integrated with Google Consent Mode. iubenda is one of them!
Let’s take a look at how to implement Google Consent Mode with iubenda’s CMP.
By selecting the autoblocking of cookie scripts in the Privacy Controls and Cookie Solution, Google Consent Mode will be automatically enabled and it will run on Google services-related scripts. That’s it!
As a CMP Partner, iubenda is making the support for Google Consent Mode easier for our users. Our Google Tag Manager template is part of this process.
The template is a straightforward way to implement Google Consent Mode on your website, as it requires way less coding than the manual implementation. You just need to add it to your GTM installation, configure the tags, and embed it.
If you’re using the old iubenda Cookie Solution script and relying on manual tagging for prior blocking, you need some extra coding to enable Google Consent Mode.
Let’s use the old Google Analytics script as an example.
The code needs to go from this:
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=GA_MEASUREMENT_ID"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'GA_MEASUREMENT_ID');
</script>
To this:
<script>
// Initialize the data layer for Google Tag Manager (this should mandatorily be done before the Privacy Controls and Cookie Solution is loaded)
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
// Default consent mode is "denied" for both ads and analytics as well as the optional types, but delay for 2 seconds until the Privacy Controls and Cookie Solution is loaded
gtag("consent", "default", {
ad_storage: "denied",
analytics_storage: "denied",
functionality_storage: "denied", // optional
personalization_storage: "denied", // optional
security_storage: "denied", // optional
wait_for_update: 2000 // milliseconds
});
// Improve ad click measurement quality (optional)
gtag('set', 'url_passthrough', true);
// Further redact your ads data (optional)
gtag("set", "ads_data_redaction", true);
</script>
// Global site tag (gtag.js) - Google Analytics
<script async src="https://www.googletagmanager.com/gtag/js?id=GA_MEASUREMENT_ID"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'GA_MEASUREMENT_ID'); //replace GA_MEASUREMENT_ID with the ID of your Google Analytics property
</script>
Basically, the data layer that forces ad_storage
, analytics_storage
and the other tags to denied needs to be added to your page before the Google service-related script is loaded.
Then you need to add the Privacy Controls and Cookie Solution snippet to the same code:
<!-- Global site tag (gtag.js) - Google Analytics -->
<script>
// Initialize the data layer for Google Tag Manager (this should mandatorily be done before the Privacy Controls and Cookie Solution is loaded)
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
// Default consent mode is "denied" for both ads and analytics as well as the optional types, but delay for 2 seconds until the Privacy Controls and Cookie Solution is loaded
gtag("consent", "default", {
ad_storage: "denied",
analytics_storage: "denied",
functionality_storage: "denied", // optional
personalization_storage: "denied", // optional
security_storage: "denied", // optional
wait_for_update: 2000 // milliseconds
});
// Improve ad click measurement quality (optional)
gtag('set', 'url_passthrough', true);
// Further redact your ads data (optional)
gtag("set", "ads_data_redaction", true);
// Google Tag Manager
(function(w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start': new Date().getTime(),
event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src =
'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-XXXXXX'); //replace GTM-XXXXXX with the ID of your Google Analytics property
</script>
<!-- iubenda Privacy Controls and Cookie Solution -->
<script>
var _iub = _iub || [];
_iub.csConfiguration = {
lang: "en",
siteId: 12345678, //use your siteId
cookiePolicyId: 12345678, //use your cookiePolicyId
countryDetection: true,
perPurposeConsent: true,
purposes: "1,4,5",
consentOnContinuedBrowsing: false,
banner: {
position: "float-top-center",
acceptButtonDisplay: true,
customizeButtonDisplay: true,
rejectButtonDisplay: true
}
};
</script>
<script src="https://cdn.iubenda.com/cs/iubenda_cs.js" charset="UTF-8" async></script>
Find more detailed instructions in our step-by-step guide.
According to Google, from January 2024, if you do not use a Google-certified CMP integrated with the Transparency and Consent Framework, your ads will not be served to EEA and UK traffic.
Are you looking for a trusted ally in your digital advertising journey? iubenda’s got your back!
Our Google-certified CMP simplifies the consent practices, offering a simple integration with both Google Ads Consent Mode and IAB’s Transparency and Consent Framework. Our CMP empowers you to stay on the right side of the law while maximizing your ad performance.