Skip to content
Privacy and compliance

What is Google Consent Mode?

3 min read · Updated · By the Reveata team

Short answerGoogle Consent Mode is a feature of Google's tags (gtag.js and Google Tag Manager) that tells Google Analytics and Google Ads what a visitor agreed to in your cookie banner, so the tags adjust their behaviour, for example by not setting advertising cookies when consent is denied.

A close-up of a device
Photo by iSawRed on Unsplash

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.

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:

js
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 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=true in the script address (Tag Manager cannot set data- 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.

Frequently asked questions

Does Consent Mode make Google Analytics compliant on its own?

No. It passes the visitor's choice to Google's tags. You still need a proper banner, a lawful basis, an accurate privacy notice and a setup that matches your regulator's expectations.

What happens to my reports when visitors decline?

In basic mode, Google tags do not run for them, so they are missing from reports. In advanced mode the tags send cookieless pings, and Google uses them to model some of the missing measurement once a data threshold is met.

Do I need Consent Mode if I do not use Google tags?

No. It is specific to Google's tags. Other tools follow your banner's choice through their own settings or by loading only after consent.

See it with your own numbersReveata ties every visit and sale to the source that brought it. Add your website in a minute.
Get started
Was this page useful?
GlossaryWhat is cookie consent?Cookie consent is the permission a website asks a visitor for before it stores or reads non-essential cookies, or similar data, on their device. Under EU and UK rules it must be given freely, clearly and before the cookies are set, and it must be as easy to refuse as to accept.GlossaryWhat is a cookie banner?A cookie banner is the pop-up or bar a website shows to tell visitors which cookies and similar technologies it uses and to collect their choice, so that non-essential cookies are only set after the visitor agrees.GlossaryWhat is a tag manager?A tag manager is a tool, such as Google Tag Manager, that you install once on your website and then use to add, change and fire analytics and marketing scripts (tags) from a web dashboard instead of editing your site's code each time.GlossaryWhat is a data layer?A data layer is a JavaScript object on your web pages, most often Google Tag Manager's window.dataLayer array, that holds structured details about the page and what the visitor does, so tags can read clean values instead of scraping them from the page.GlossaryWhat is a data controller?A data controller is the organisation that decides why and how personal data is processed. A data processor is a separate organisation that processes the data on the controller's behalf and only on its instructions, such as an analytics or email provider.GlossaryWhat is a data processing agreement (DPA)?A data processing agreement (DPA) is the contract in which a company that processes personal data for you, such as an analytics or email provider, commits to handling it only on your instructions and with proper safeguards. The GDPR requires one whenever a processor handles personal data for a controller.