Consent Mode is not a consent tool. It does not show a banner or ask anyone anything. It is a channel: your cookie banner collects the choice, and Consent Mode passes that choice to Google's tags in a format they understand. Google documents it in its consent mode guide (opens in a new tab), which is the source for the details below.
The consent types
| Type | Controls |
|---|---|
ad_storage |
Storage, such as cookies, for advertising |
analytics_storage |
Storage for analytics, such as visit duration |
ad_user_data |
Sending user data related to advertising to Google |
ad_personalization |
Personalised advertising, such as remarketing |
The last two were added in Consent Mode v2. Google says they are needed for its advertising features in the European Economic Area.
How it is set up
With gtag.js you set a default before any measurement command, then update it when the visitor chooses:
gtag('consent', 'default', {
ad_storage: 'denied',
analytics_storage: 'denied',
ad_user_data: 'denied',
ad_personalization: 'denied',
wait_for_update: 500,
});
// After the visitor accepts analytics in your banner:
gtag('consent', 'update', { analytics_storage: 'granted' });Google's guide stresses that order matters: the default must run before the tags send anything. In Tag Manager, consent templates use setDefaultConsentState and updateConsentState instead.
Basic and advanced
Google's consent mode overview (opens in a new tab) describes two ways to implement it. In basic mode, Google tags stay blocked until the visitor responds to the banner, and nothing is sent if they decline. In advanced mode, the tags load straight away with consent denied by default; while denied, they send the consent state and measurements without cookies, which Google uses for modelling. Google suggests checking your company's guidelines before choosing. Whether advanced mode suits your legal situation is a question for your adviser; this page is not legal advice.
Consent Mode and other analytics tools
Consent Mode only affects Google's own tags. Every other script on your page needs to respect the banner's choice in its own way, usually by being loaded only after consent, or by working without storage at all.
How Reveata fits in
Reveata does not read Consent Mode signals; it does not need to. You have two options:
- Load it after consent. Put the Reveata tag behind your consent trigger in Tag Manager, or in your banner tool's analytics category. The Tag Manager template loads the script and sends goals and identify calls from any trigger, so a consent trigger works like any other.
- Use cookieless mode. With
cookieless=truein the script address (Tag Manager cannot setdata-attributes), Reveata stores nothing in the browser and counts visitors per day with a hash whose salt is deleted after the day. See Privacy, cookies and cookieless mode.
Reveata does use Microsoft Clarity's equivalent: when you let Reveata load your Clarity project after consent, it passes the choice on with Clarity's consent API.