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- Type
- Consent signalling framework
- Works with
- Microsoft Advertising and UET
- Signal
- ad_storage
- States
- Granted and denied
- CookieHub support
- Built in
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.
- 01Page loadstag queued
- 02Default consent state appliedconsent default
- 03Visitor makes a choicebanner
- 04CookieHub updates ad_storageconsent update
- 05Microsoft UET responds to the statetag behaviour
From visitor choice to Microsoft UET.
Pick a visitor state to see the consent signal CookieHub sends to Microsoft.
The visitor has arrived and the banner is showing. Nothing has been agreed to.
The visitor accepted the category connected to Microsoft advertising.
The visitor declined advertising, or withdrew a previous choice.
Illustrative signal behaviour for one configuration. Actual defaults and regional behaviour depend on the site’s consent configuration.
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.
- 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.
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.
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.
- 01Page loadstag loaded
- 02ad_storage = denieddefault
- 03Cookieless measurement signals may be sentcookieless
- 04Visitor makes a choicebanner
- 05Consent state updatesconsent update
Strict pre-consent restriction
UET behaviour follows the visitor’s consent state, and advertising storage remains restricted until permission is available.
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.
Set up Microsoft UET Consent Mode.
Three phases, from connecting CookieHub to confirming the consent state Microsoft receives.
- 01
Connect
Connect CookieHub to the Microsoft tag environment already used by the site.
- 01Add CookieHub to the website so it loads before the UET tag.
- 02Connect Microsoft UET directly or through Google Tag Manager where applicable.
- 02
Configure
Choose how consent should behave for the relevant visitor regions.
- 03Configure the appropriate consent model.
- 04Set the required default UET consent state.
- 05Connect visitor advertising choices to ad_storage.
- 06Publish the consent configuration.
- 03
Verify
Confirm that Microsoft receives the expected state.
- 07Test the default consent state.
- 08Change the visitor choice.
- 09Confirm that ad_storage updates correctly.
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.
- 01
UET Tag Helper
browser extensionLoad a page with the extension active and confirm that a consent state is present on UET events before and after the visitor chooses.
- 02
Consent signal status
uet dashboardThe UET tag overview in Microsoft Advertising reports whether consent signals are being received with your events.
- 03
Default before update
order mattersConfirm the default state is set before UET events fire, then that the update follows the visitor’s choice.
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 apiGoogle 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.
Official Microsoft documentation.
Last reviewedSeptember 2026- Setting up UET for Consent ModeMicrosoft’s implementation guidance for the UET consent state, including default and update calls.help.ads.microsoft.com
- Providing user consent signals on your Microsoft campaignsHow Consent Mode adjusts UET behaviour through ad_storage, and which regions require consent signals.about.ads.microsoft.com
- Advanced Consent ModeMicrosoft’s explanation of how Advanced Consent Mode models aggregate trends when consent is declined.about.ads.microsoft.com
- Everything you need to know about setting up UETReference for creating the UET tag and adding it to the site, after the CookieHub script.help.ads.microsoft.com
- Set up UET tags using Google Tag ManagerThe GTM path for UET, including the Microsoft Advertising UET tag template.help.ads.microsoft.com
- UET Consent Mode in CookieHubCookieHub’s own documentation for setting the default state and connecting consent to ad_storage.docs.cookiehub.com
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.
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.
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
