Google Consent Mode v2: what it is and how to set it up on your site
Consent Mode tells Google tags what they may store based on what each visitor accepts. The 4 signals, code order and common mistakes.
You set up your campaign, the cookie banner appears, and in Google Analytics the numbers do not match your sales. Sometimes the problem is not the ads: it is that your tags do not know what each visitor accepted. Consent Mode exists to solve exactly that.
What is Google Consent Mode?
It is the system your site uses to tell Google tags whether the visitor granted or denied consent, so they adjust what they store and send. According to Google's documentation, when ad_storage is denied, no new cookies are set for advertising purposes.
It matters if you measure with GA4 or advertise on Google Ads. If you want to measure well, check the key GA4 events.

What are the four consent signals?
They are ad_storage, analytics_storage, ad_user_data and ad_personalization, and each one is granted or denied separately. The last two belong to version 2, according to Google. The Google Tag Manager help describes them like this:
| Signal | What it controls |
|---|---|
ad_storage | Storage for advertising (cookies) |
analytics_storage | Storage for analytics, such as visit duration |
ad_user_data | Sending advertising-related user data to Google |
ad_personalization | Personalized advertising |
The same help page says ad_user_data is required for practical measurement use cases.
How do you set the default consent?
You set it with the gtag('consent', 'default', ...) command, which must run before any measurement command. Google warns that if the code is called out of order, the defaults do not work, and that by default no value is set.
A typical example is denying all four signals until the person decides. If your cookie banner loads asynchronously, add wait_for_update with a value in milliseconds: Google uses 500 in its example to give the banner time to send the choice before tags fire.
Common mistake: putting the consent code after the Google tag. According to the documentation, the defaults are not applied in that case and your tags behave as if you had configured nothing.
How do you update it when the person responds?
You update it with gtag('consent', 'update', ...) as soon as the visitor interacts with your banner, using granted or denied for each signal. Google clarifies that Consent Mode does not save choices, so your consent tool or your site must remember them, for example in a first-party cookie or local storage, and resend them on every visit.
Revoking works the same way: you send denied again. For the legal side of personal data in Colombia, read Law 1581 applied to WhatsApp and CRM.
Can I apply different rules by country?
Yes, with the region parameter, which accepts ISO 3166-2 codes such as ES or US-AK. A default without a region applies to all other visitors, and when there are several rules, the one with the most specific region wins: a rule for US-CA outweighs one for US.

Google's documentation also mentions related settings, such as url_passthrough, which passes ad click information through URL parameters, and ads_data_redaction, which only takes effect when ad_storage is denied. To understand where your leads come from, see UTMs in GA4.
How do I check that it is set up right?
Open your site, answer the cookie banner and check that the consent state changes from denied to granted before your tags fire. If you use Google Tag Manager, Google's own help mentions the consent initialization trigger, which comes by default in web containers, and per-tag consent settings.
Note: this guide describes what Google's technical documentation says; it is not legal advice. What you must ask for and how depends on the laws of each country where you have visitors.
In short
If your numbers did not add up, check the order first: default consent, tags, and update when the person responds. With the four signals sent correctly, your tags respect what each visitor decided. If you want your measurement and your ads connected, see our Meta and Google Ads service.
Frequently asked questions
What is Google Consent Mode?
It is a mechanism that tells Google tags whether the visitor granted or denied consent for advertising and analytics, so they can adjust what they store and send.
What are the Consent Mode v2 signals?
ad_storage, analytics_storage, ad_user_data and ad_personalization. The last two are the version 2 parameters, according to Google documentation.
Does Consent Mode replace my cookie banner?
No. Google clarifies that Consent Mode does not save choices: you need a consent tool that collects them, remembers them and sends them with the update command.
What does wait_for_update do?
It gives your cookie banner a margin in milliseconds to load and send the choice before tags fire. Google's example uses 500 milliseconds.
Can I set different rules by country?
Yes. The region parameter accepts ISO 3166-2 codes, such as ES or US-AK, and the rule with the most specific region wins.
Do not stop at the theory: apply it to your business
We implement Meta and Google Ads end to end, with your real operation. The first conversation is free.




