Google Consent Mode passes the choice a visitor makes in your cookie banner to Google tags. Version 2 arrived as digital market rules in the European Economic Area tightened, and it tells Google whether consent was obtained to use European users' data for advertising. If your site only serves an Uzbek audience this may feel distant, but for a hotel welcoming European tourists, an exporting manufacturer or any business advertising abroad, a missing Consent Mode v2 setup can mean empty remarketing lists and lost conversion measurement.
What changed: two new signals
The original Consent Mode relied on ad_storage for advertising cookies and analytics_storage for analytics cookies. Version 2 adds ad_user_data, which signals consent to send user data to Google for advertising, and ad_personalization, which covers personalised ads and remarketing. Other types such as functionality_storage, personalization_storage and security_storage describe functional, preference and security cookies. Each parameter is either granted or denied.
Basic versus Advanced
In Basic mode, Google tags do not load at all until the user consents, so nothing is sent if they decline. In Advanced mode tags load immediately but, without consent, write no cookies and send limited cookieless pings that Google uses to model part of the missing conversions. Advanced yields more data, but the choice depends on legal requirements and company policy, so decide together with your lawyer.
Setting defaults in code
Defaults must be set on page load, before any Google tag fires. This block goes in the head, above gtag.js or the Tag Manager snippet:
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('consent', 'default', {
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'analytics_storage': 'denied',
'wait_for_update': 500
});
</script>
wait_for_update gives the banner script time, in milliseconds, to read a previously saved choice. The region parameter limits defaults to specific country codes. When the user makes a choice, the banner calls an update:
gtag('consent', 'update', {
'analytics_storage': 'granted',
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied'
});
Store the choice in a cookie or localStorage and call the update again on every page load, otherwise visitors see the banner repeatedly.
Ready-made CMP or your own banner
Google maintains a list of certified consent management platform partners, and most send v2 signals automatically. In Tag Manager you can add CMP templates from the gallery and set the required consent types for each tag. WordPress has consent plugins too; check that their documentation explicitly mentions ad_user_data and ad_personalization.
Example: a hotel in Samarkand
A boutique hotel in Samarkand advertises to tourists in Germany and France and takes bookings online. Without Consent Mode v2 its European remarketing audiences stop growing. After adding a CMP banner that is mandatory for European visitors and lighter for local and CIS users, consent status shows correctly in Google Ads and bookings are measured again.
How to verify
- Open the page in a fresh incognito window and confirm every parameter starts as
deniedin Google Tag Assistant's Consent tab. - Accept only analytics and check that
analytics_storageswitches togranted. - In developer tools confirm that
_gaand ad cookies are not written after declining. - After a few days, review consent diagnostics in Google Ads and GA4.
The most common mistakes are placing the default block after the Tag Manager snippet and a banner that displays but never calls update. Both are visible in Tag Assistant within minutes.