Skip to main content

Compliance

Set up Microsoft UET consent mode with Limes

Last reviewed

Microsoft Advertising's Universal Event Tracking (UET) tag has its own consent mode. Your banner sets the ad_storage signal to denied by default and to granted after consent, and UET adjusts what it stores and sends. Microsoft began enforcing consent signals for traffic from the EEA, the UK and Switzerland in May 2025, so advertisers running Microsoft Ads in Europe should pass consent explicitly.

Consent signals after a reject

  • Statistics denied
  • Ads denied
  • Ad data denied
  • Personalized ads denied
Signal
ad_storage
API
window.uetq.push('consent', ...)
Enforced for
EEA, UK, Switzerland
Since
May 2025

How UET consent mode works

UET consent mode currently uses a single parameter, ad_storage. With denied, UET does not read or write advertising cookies; with granted, it works normally. The default must be set before the UET tag loads; the update is sent once the visitor decides.

UET consent default and update
window.uetq = window.uetq || [];
window.uetq.push('consent', 'default', { ad_storage: 'denied' });

window.uetq.push('consent', 'update', { ad_storage: 'granted' });

UET consent mode in Limes

Limes sends UET consent mode on its own, in every plan. On page load it pushes the default from the stored choice, and on every decision, including withdrawal, it pushes an update. The marketing category maps to ad_storage. You do not need extra code:

What Limes pushes to UET
window.uetq = window.uetq || [];
window.uetq.push('consent', 'default', { ad_storage: 'denied' });

// after the visitor accepts marketing
window.uetq.push('consent', 'update', { ad_storage: 'granted' });

Prefer the conservative route in Germany: load the UET tag only after marketing consent. The consent signals then document the state for Microsoft.

Microsoft Clarity

Microsoft Clarity (session recordings and heatmaps) also sets cookies and has announced its own consent requirements for visitors from the EEA, UK and Switzerland. Treat Clarity as a statistics or marketing service in your banner and load it only after consent.

Tick each step your website meets.

Developer guide

Events, JavaScript API and custom integrations for any stack.

Sources

  1. Universal Event Tracking(opens in a new tab) Microsoft learn.microsoft.com
  2. Directive 2002/58/EC, Art. 5(3)(opens in a new tab) EUR-Lex eur-lex.europa.eu ePrivacy Directive, the basis of § 25 TDDDG
  3. § 25 TDDDG(opens in a new tab) German Federal Ministry of Justice gesetze-im-internet.de Consent for storing and reading information on the device
  4. GDPR, Art. 4(11), Art. 6 and Art. 7(opens in a new tab) EUR-Lex eur-lex.europa.eu Definition, legal basis and conditions of consent

Is UET consent mode the same as Google Consent Mode?

The idea is the same, but it is a separate API. UET uses window.uetq.push('consent', ...) and currently only the ad_storage parameter.

What happens if I don't send consent signals to Microsoft?

Microsoft has announced that it enforces consent for EEA, UK and Swiss traffic; without valid signals, conversion tracking and audience features for those users may be limited. Legally, you need consent for UET cookies in the EU anyway.

Do I need Microsoft UET consent mode if I only load UET after consent?

It is still recommended: the signals document the consent state and keep UET's behaviour correct when a visitor later withdraws consent.

Limes sends Google Consent Mode and Microsoft UET consent on every decision, in every plan.

Free up to 2,500 sessions. No payment details.