MicrosoftFrameworkMicrosoft UET Consent Mode

Microsoft UET Consent Mode

Connect visitor privacy choices with Microsoft Advertising and UET — and keep the consent state updated as those choices change.

Built-in CookieHub support · UET and GTM compatible
Consent stateregion: eusignal: ad_storagestate: updatedVisitor choiceadvertising deniedCookieHubchoice → consent stateMicrosoft UETuetq consent updatead_storagedenied
Type
Consent signalling framework
Works with
Microsoft Advertising and UET
Signal
ad_storage
States
Granted and denied
CookieHub support
Built in
Overview

What Microsoft UET Consent Mode actually does.

Microsoft UET Consent Mode tells Microsoft Advertising whether advertising-related storage is permitted for a visitor. The UET tag reads that state and adjusts how it uses cookies.

CookieHub collects and manages the visitor’s privacy choice. That choice is then translated into the consent state used by Microsoft UET — set as a default when the page loads, and updated when the visitor decides.

CookieHub manages the visitor’s choice. UET Consent Mode carries that state to Microsoft Advertising.

Page lifecyclewindow.uetq
  1. 01Page loadstag queued
  2. 02Default consent state appliedconsent default
  3. 03Visitor makes a choicebanner
  4. 04CookieHub updates ad_storageconsent update
  5. 05Microsoft UET responds to the statetag behaviour
Signal flow

From visitor choice to Microsoft UET.

Pick a visitor state to see the consent signal CookieHub sends to Microsoft.

Visitor state
Visitor choiceNo choice yet

The visitor has arrived and the banner is showing. Nothing has been agreed to.

CookieHubApplies configured defaultevent: consent defaultregion: eustored: no
Microsoft UETdefaultad_storagedenied
Visitor choiceAdvertising accepted

The visitor accepted the category connected to Microsoft advertising.

CookieHubUpdates consent stateevent: consent updatecategory: marketingstored: yes
Microsoft UETupdatedad_storagegranted
Visitor choiceAdvertising declined

The visitor declined advertising, or withdrew a previous choice.

CookieHubKeeps advertising storage deniedevent: consent updatecategory: nonestored: yes
Microsoft UETupdatedad_storagedenied

Illustrative signal behaviour for one configuration. Actual defaults and regional behaviour depend on the site’s consent configuration.

Consent states

One signal. Two consent states.

Microsoft UET uses ad_storage to understand whether advertising-related storage is permitted.

ad_storage
  • granted

    Advertising storage permitted

    • UET can read and write first-party and third-party cookies.
    • Conversion measurement and remarketing work as configured.
    consent state: granted
  • denied

    Advertising storage restricted

    • According to Microsoft, UET does not read or write first-party cookies.
    • Third-party cookies are not written, and are only read for fraud and spam detection rather than advertising.
    consent state: denied

Where no consent state is specified, UET assumes granted — so the configured default state matters before the visitor chooses. Sites serving visitors in the EEA, the UK and Switzerland normally set ad_storage to denied by default.

Advanced consent mode

Measurement can continue without assuming consent.

With Advanced Consent Mode, UET can operate with a denied consent state and use cookieless signals for supported measurement and modelling scenarios.

  1. 01Page loadstag loaded
  2. 02ad_storage = denieddefault
  3. 03Cookieless measurement signals may be sentcookieless
  4. 04Visitor makes a choicebanner
  5. 05Consent state updatesconsent update
Standard mode

Strict pre-consent restriction

UET behaviour follows the visitor’s consent state, and advertising storage remains restricted until permission is available.

Advanced Consent Mode

Measurement continuity where supported

UET can operate with denied defaults and use supported cookieless signals before consent changes. Microsoft describes Advanced Consent Mode as applying modelling to aggregate trends, so conversions that would otherwise be missing when consent is declined can still be estimated.

Neither approach removes the need to obtain consent where it is required. Which one fits depends on the site’s consent configuration and on how its visitors interact with the banner. With CookieHub, load CookieHub before UET in both modes, including Advanced Consent Mode.

Implementation

Set up Microsoft UET Consent Mode.

Three phases, from connecting CookieHub to confirming the consent state Microsoft receives.

  1. 01

    Connect

    Connect CookieHub to the Microsoft tag environment already used by the site.

    1. 01Add CookieHub to the website so it loads before the UET tag.
    2. 02Connect Microsoft UET directly or through Google Tag Manager where applicable.
  2. 02

    Configure

    Choose how consent should behave for the relevant visitor regions.

    1. 03Configure the appropriate consent model.
    2. 04Set the required default UET consent state.
    3. 05Connect visitor advertising choices to ad_storage.
    4. 06Publish the consent configuration.
  3. 03

    Verify

    Confirm that Microsoft receives the expected state.

    1. 07Test the default consent state.
    2. 08Change the visitor choice.
    3. 09Confirm that ad_storage updates correctly.
    verifiedRecheck when tags or consent settings change.
Verify your setup

Is UET Consent Mode working on your site?

Check that the expected consent state is present before and after the visitor makes a choice. Microsoft provides the verification tools for UET.

  1. 01

    UET Tag Helper

    browser extension

    Load a page with the extension active and confirm that a consent state is present on UET events before and after the visitor chooses.

  2. 02

    Consent signal status

    uet dashboard

    The UET tag overview in Microsoft Advertising reports whether consent signals are being received with your events.

  3. 03

    Default before update

    order matters

    Confirm the default state is set before UET events fire, then that the update follows the visitor’s choice.

Compatibility

Works with the Microsoft advertising stack.

CookieHub passes the consent state used by Microsoft UET and connected advertising tools.

  • Microsoft Advertisingad_storage
  • Universal Event Trackinguetq consent
  • Microsoft Clarityconsent api
  • Google Tag Manageruet template

Built for Microsoft UET Consent Mode.

CookieHub supports Microsoft UET Consent Mode from version 2.8.8 onwards, and Microsoft lists CookieHub among the consent management platforms whose signals UET can read. Verification of a specific implementation is done with Microsoft’s own UET tools.

FAQ

Microsoft UET Consent Mode questions.

It is how Microsoft Advertising receives a visitor’s consent state. The website sets a consent state through the UET tag, and UET adjusts its use of cookies accordingly. Consent signals have been required for visitors in the EEA, the UK and Switzerland since May 2025.

ad_storage is the single property UET Consent Mode uses for advertising-related storage. It has two values, granted and denied. Google Consent Mode uses the same parameter name alongside its other consent parameters, which is why a marketing category can often drive both.

According to Microsoft, UET does not read or write first-party cookies. Third-party cookies are not written, and are only read for fraud and spam detection rather than for advertising. Measurement attributed to that visitor is reduced accordingly.

Advanced Consent Mode lets UET operate with a denied consent state and send supported cookieless signals before a choice is made. Microsoft describes it as applying modelling to aggregate trends to estimate conversions that would otherwise be missing when consent is declined.

No. A consent management platform such as CookieHub presents the choice and stores the decision. UET Consent Mode carries the resulting state to Microsoft.

No. GTM is a common path because the Microsoft Advertising UET tag template can handle consent updates there, but the consent state can also be set directly through window.uetq in supported implementations.

Yes, from CookieHub version 2.8.8. From 2.8.12 the Microsoft UET Consent Mode integration setting controls it: when it is on, CookieHub sets ad_storage to denied by default and updates it from the visitor’s Marketing choice. A manual consent default snippet at the top of the page head is only needed on versions 2.8.8 to 2.8.11, and earlier versions don’t support UET Consent Mode. Unless UET runs through Google Tag Manager or Automatic Cookie Blocking is off for the domain, make sure Microsoft Ads isn’t automatically blocked, so UET Consent Mode can operate. UET Consent Mode doesn’t control Microsoft Clarity cookies — where Clarity is used, set up the Clarity integration as well.

Use Microsoft’s UET Tag Helper to confirm a consent state is present on UET events, and check the consent signal status reported for your UET tag in Microsoft Advertising. CookieHub does not provide a separate UET checker.

No. UET Consent Mode communicates a consent state; it does not ask for consent. A banner or equivalent consent interface is still what collects the visitor’s choice.

Legal note

Disclaimer

This page describes how consent signals are passed to Microsoft UET. It is technical guidance, not legal advice, and it does not describe every possible configuration — which consent model applies to your visitors depends on the regulations relevant to your site.

Microsoft UET Consent Mode

Send the right consent state to Microsoft.

Connect CookieHub to UET, configure the consent state and verify that Microsoft receives the expected signal.

  • 14-day trial
  • No card required