Consent mode
Consent mode is a tool for managing user consent. It decides how analytics and advertising tags and systems collect data on a website or in an app, in line with the consent the user has given or refused. In the Google ecosystem, it controls how tags behave with regard to privacy and cookies, so you stay in control of the flow of information.
What consent mode is
Consent mode is used by owners of websites and apps that run Google tags, such as GA4, Google Ads or Google Tag Manager. It determines whether data can be collected in full or only partly, depending on the consent state.
It's more than a formality. Consent mode creates a layer between the consent banner and your measurement tags. Tags automatically respect the user's decision, so you no longer have to switch scripts off by hand on the page.
How consent mode works
It all starts with a default consent state. After the user decides, by accepting or refusing, the system updates that state and passes the information to the tags. From then on, the tags work in line with the user's choice, which affects how much data they send.
Default state, update and the order of implementation
Before the user's first interaction, set a default consent state for every consent type used on the site. It's a simple sequence, but it needs precision, especially if you rely on accurate reports. The order matters:
- Load the Google tag with the default consent state – This lets tags follow your privacy policy before the user makes a decision.
- Show the banner or consent management platform (CMP) – The CMP passes on the user's choice.
- Send the update command – After the user's choice, update the consent state with the update command or the relevant API. Only then can you be sure data doesn't flow against what the user declared.
- Use wait_for_update with an asynchronous banner – If your banner loads asynchronously, wait_for_update lets you hold back sending data until the user decides.
Basic vs Advanced consent mode
Consent mode can be implemented in two variants. Which one fits depends on your privacy policy, your business requirements and the level of risk you accept.
| Basic | Advanced | |
|---|---|---|
| Before consent | Google tags are blocked completely. No data is sent, not even the consent status. | Google tags load straight away and, while consent is denied, send limited pings without cookies. |
| Conversion modelling | Based on a general model. | Gaps can be filled with conversion modelling, which Google describes as improved compared with Basic. |
| In short | A clear, all-or-nothing model with no room for compromise. | More flexible, but still based on the consent state. |
Consent types
The four main consent types are below. The first two cover storage for advertising and analytics, the other two cover advertising data and ad personalisation.
| Consent type | What it covers |
|---|---|
| ad_storage | Storage such as cookies (web) or device identifiers (apps) related to advertising. |
| analytics_storage | Storage such as cookies or device identifiers related to analytics, for example visit duration. |
| ad_user_data | Consent to send user data to Google for online advertising purposes. |
| ad_personalization | Consent to personalised advertising. |
What changed in Consent Mode v2
Consent Mode v2 is Google's response to new privacy requirements. It extends the set of supported consent types and puts order into how they are passed to measurement systems. In practice, it changes the way advertising systems can use data.
Version 2 gives advertising consent new weight, with a direct effect on how data is processed in Google Ads. Compared with earlier solutions, the emphasis has shifted to a clear separation between analytics consent and advertising consent. It's more than a cosmetic change.
Where consent mode is used
You implement consent mode on websites and in apps that use Google tags: GA4, Google Ads and GTM. It works with gtag.js as well as with GTM, a CMP or a cookie banner, depending on how your site is built. Consent states are most often set in the tag container. If you need a hand with that, see our GA4 and Google Tag Manager service.
Terms such as Consent Mode Inspector, GA4 consent mode, Google Consent Mode v2 and Consent Mode Advanced all relate to this mechanism. In the Google ecosystem, it's now the standard way to handle consent.