Google and Microsoft

Consent Mode v2 and Microsoft UET consent, with no changes to your tags.

Google requires sites in Europe to tell it about consent before its tags run. We do this with Consent Mode v2: the banner sets default signals before your tags load and sends an update as soon as a visitor chooses. Google Analytics, Google Ads and Tag Manager need no changes.

Microsoft Advertising works the same way (UET consent), and it is on by default.

Consent Mode passes the visitor’s choice to Google’s tags. It doesn’t decide what the law asks of your site; the banner’s rules for each country do that.

Google’s own guides: Consent Mode for developers and About Consent Mode.

What the banner sends

It is on for every new site. To turn it off, switch off Tell Google Ads and Analytics about each choice (Consent Mode) in the Banner tab’s Advanced settings.

Basic and advanced

Google describes two ways to run Consent Mode.

Where the law asks first, regulators haven’t settled whether advanced mode is allowed.

What this means for your reports

Tag Manager

Our script must run before the Tag Manager snippet, so put it above the snippet in your page’s <head>. The install check confirms this (“Google tags wait for consent”). If you load Meta, TikTok or other pixels through Tag Manager, either gate them on the consent state with a trigger or let our automatic blocking hold them. It does this for known pixel hosts.

Checking your setup

If a Google tag loads first, move our script line above it. If it still loads first, check whether the tag comes through Google tag gateway (below).

Google tag gateway

Google tag gateway for advertisers serves Google’s tag from your own domain, through your CDN (such as Cloudflare), load balancer or web server. When it is switched on with one click at the CDN, the CDN adds the tag to your pages itself, so you can no longer choose whether it loads before or after our script. Consent then arrives late.

How to tell if a tag uses it:

If the install check says a Google tag loads first and the tag uses the gateway, do one of these:

Server-side tagging

Consent Mode signals only reach Google tags. Server-side integrations for Meta and TikTok need their own consent check, which can read the visitor’s choice from the JavaScript API or the cmp:consent event.

Getting help

If Google’s tags aren’t getting consent signals, email us first at hello@flatconsent.com, not Google support. The signals come from our banner, and Google’s support asks you to check with your consent provider before contacting them.