Microsoft Advertising integration

Microsoft Ads needs a consent signal first.

Microsoft requires one for EEA, UK and Swiss visitors, or UET stops tracking conversions. ConsentBit sends it from your banner, before the UET tag runs.

Listed by Microsoft Advertising for UET Consent Mode
Google-certified CMP
Works on Webflow, Framer, WordPress and any website builder
yourwebsite.com · page source
<head>
1
consentbit.js
Runs first: sets ad_storage to denied
2
Microsoft UET tag
Loads straight after, with no cookies
Signal chosen for you
GDPR banner
UET Consent Mode
CCPA / US states
UET Consent Mode
IAB TCF banner
TC string
1
ad_storage is set before the UET tag runs.
2
Consent Mode or IAB TCF, chosen automatically from your banner type.

Key facts

Microsoft’s rule for European traffic, not a law.

Universal Event Tracking (UET) is the tag behind Microsoft Advertising conversions and remarketing. Since 5 May 2025, Microsoft requires advertisers to send a consent signal for visitors from the EEA, the UK and Switzerland. Microsoft accepts two kinds of signal, UET Consent Mode or IAB TCF, and asks that a site never use both at once.

Enforced since

5 May 2025

for visitors from the EEA, the UK and Switzerland.

One permission: ad_storage, which controls whether UET can store cookies
No default, no protection: UET treats consent as granted if no default reaches it first

Requirements

Five things Microsoft expects from your consent setup

Each requirement in plain terms, next to how ConsentBit covers it.

What Microsoft requires
How ConsentBit handles it
01

Collect valid consent from visitors in the EEA, UK and Switzerland

Visitors outside the US see a GDPR banner with Accept all, Reject all and a preferences panel.

02

Set the consent default before the UET tag runs

ConsentBit loads first and sets ad_storage, so UET never starts without a default.

03

Update the signal when the visitor chooses

The moment a visitor accepts, rejects or changes their mind, ConsentBit sends the update.

04

Use Consent Mode or IAB TCF, never both at once

ConsentBit picks the right method from your banner type automatically.

05

Cover Microsoft Clarity too, if you use it

ConsentBit sends the Clarity signal and the UET signal from the same banner choice.

How it works

How a choice reaches Microsoft Ads, step by step

This is the flow for the GDPR banner. The CCPA banner works the same way, but starts from granted.

1

The page loads

ConsentBit runs first and sets ad_storage to denied. The UET tag loads straight after, with no cookies.

2

The visitor chooses

Accept all, Reject all, or pick categories in the preferences panel.

3

ConsentBit sends the update

Allowing Marketing switches ad_storage to granted. Anything else leaves it denied.

4

UET adjusts

With consent, UET sets its cookies and tracks conversions and remarketing as normal. Without it, Microsoft collects only anonymous data.

Signal method

One banner, the right signal

Microsoft accepts two kinds of consent signal and doesn’t allow both at once. ConsentBit chooses based on the banner your site uses.

Your banner
Method
What ConsentBit sends
GDPR
UET Consent Mode
ad_storage starts denied, and switches to granted when the visitor allows Marketing.
CCPA and US state laws
UET Consent Mode
ad_storage starts granted, and switches to denied when the visitor opts out.
IAB TCF
IAB TCF
UET reads consent from the TC string, including Microsoft (vendor 1126) and Xandr (vendor 32).

UET enforces one permission, ad_storage, and ConsentBit maps it from your Marketing category. A visitor who allows Analytics but not Marketing keeps ad_storage denied.

Using Google tags as well? Each category is passed on as a Google Consent Mode signal. See how Consent Mode V2 works →

Scripts added later are caught too

If the page loads a script after a click, ConsentBit holds it until the visitor has given consent.

Consent can be withdrawn

If a visitor turns a category off from the floating icon, those scripts are blocked again.

Scripts added later are caught too

If the page loads a script after a click, ConsentBit holds it until the visitor has given consent.

Consent can be withdrawn

If a visitor turns a category off from the floating icon, those scripts are blocked again.

What Microsoft Ads can do, with and without consent

On the GDPR and CCPA banners, ConsentBit uses the Advanced setup Microsoft recommends: the UET tag loads either way, and the consent signal decides what it may store.

Category
Consent granted
Consent denied
The UET tag
Loads
Loads
UET cookies
Set as normal
None written (MUID, _uetsid, _uetvid, MSPTC)
Conversion tracking
Tracked as normal
Anonymous data only, used for modeled conversions
Remarketing lists
Built as normal
Not built for those visitors

Order matters

UET treats consent as granted when it sees no default, so ConsentBit has to load first. Install the ConsentBit script above your UET tag.

The TCF banner works differently

If your site uses ConsentBit’s IAB TCF banner, the UET tag is held until the visitor chooses, then reads their consent from the TC string. Reject, and the tag doesn’t load at all.

Also using Microsoft Clarity? ConsentBit sends its consent signal from the same banner choice. See how Clarity consent works →

Add a GDPR banner to your site, free.

Preview of the ConsentBit cookie banner on a website

Setup

Set up UET with ConsentBit in 4 steps

Nothing to configure in ConsentBit. The order of the two scripts is what matters.

1

Install ConsentBit first

Add the ConsentBit script to the head of your site and publish your banner.

2

Add your UET tag below it

Paste the UET tag exactly as Microsoft Advertising provides it, under the ConsentBit script. Don’t add a blocking attribute.

3

Remove any consent code you added yourself

If a developer added consent or TCF code to your UET tag before, remove it. ConsentBit sends the signal for you, and Microsoft doesn’t allow both at once.

4

Check it

Open your site in a private window and run window.uetq.uetConfig.consent.adStorageAllowed in the console. It returns false before consent and true after you accept Marketing. Reject in a new private window, and confirm no MUID, _uetsid or _uetvid cookies appear.

Scripts added later are caught too

If the page loads a script after a click, ConsentBit holds it until the visitor has given consent.

Consent can be withdrawn

If a visitor turns a category off from the floating icon, those scripts are blocked again.

Supported CMP

On Microsoft Advertising’s list of supported CMPs

Microsoft Advertising publishes the CMPs that support its Consent Mode, and ConsentBit is on it. Microsoft's entry links straight to ConsentBit's setup guide.

Listed by Microsoft
Microsoft Advertising
ConsentBit is listed under “Consent Management Platforms (CMPs) that support our Consent Mode”
Microsoft Clarity
ConsentBit is also listed as a CMP supported by Clarity
What you have to do
Install ConsentBit and add your UET tag. No consent code to write.

FAQ

Microsoft Ads consent questions, answered

Can't find what you need? Talk to our team at web@consentbit.com.

Is consent mode mandatory for Microsoft Advertising?

For visitors from the EEA, the UK and Switzerland, Microsoft requires a consent signal, through either UET Consent Mode or IAB TCF. It is Microsoft’s own requirement, based on the EU’s ePrivacy and GDPR rules, rather than a law in itself.

What happens if I don’t send a consent signal?

Microsoft stops tracking UET conversions and stops building remarketing lists for visitors from those regions, so conversion attribution and audience sizes drop. UET also treats consent as granted when no default reaches it, which is the opposite of what EU rules expect.

What’s the difference between Basic and Advanced consent mode for UET?

In Basic, the UET tag doesn’t load at all until the visitor consents. In Advanced, the tag loads with consent denied and Microsoft collects anonymous data that feeds modeled conversions. Microsoft recommends Advanced, and that’s what ConsentBit uses on the GDPR and CCPA banners.

Does ConsentBit support IAB TCF for UET?

Yes. If your site uses ConsentBit’s IAB TCF banner, UET takes the visitor’s choice from the TC string instead, including consent for Microsoft and Xandr. ConsentBit never sends both kinds of signal at once, which Microsoft doesn’t allow.
IAB TCF →

Does this cover Microsoft Clarity as well?

Clarity has its own consent signal. Microsoft’s Advertising documentation says to set it separately, while Clarity’s own FAQ says consent is handled by the UET tag when Clarity runs through it. Either way, ConsentBit sends both signals from the same banner choice, so the visitor’s choice reaches both. How Clarity consent works →

Which cookies does UET set?

With consent, UET can set MUID, _uetsid, _uetvid and MSPTC, among others. With consent denied, none of them are written, and Microsoft only reads third-party cookies for fraud and spam checks, not for advertising.

Do I need to block the UET tag?

No. On the GDPR and CCPA banners, the tag loads and the consent signal controls what it may store. On the IAB TCF banner, ConsentBit holds the tag until the visitor chooses. Either way, you don’t add blocking attributes yourself.

Is there a free trial?

Yes. ConsentBit has a free plan, and every paid plan comes with a 14-day free trial. See pricing for what each plan includes. See pricing →

‍

Keep your Microsoft Ads data flowing, with consent

ConsentBit sets the signal before UET runs, updates it the moment a visitor chooses, and keeps a record of every choice.

This page is a general overview of Microsoft Advertising’s consent requirement, not legal advice. The requirement is Microsoft’s own. It doesn’t replace your obligations under privacy laws such as GDPR.