Microsoft Advertising advertisers
Those who measure conversions or build audiences with UET must send the signal for visits from the EEA, the UK and Switzerland.
Guide · Microsoft Advertising
The UET tag measures conversions and builds audiences for Microsoft Advertising. Since May 2025, visits from the EEA, the UK and Switzerland must arrive with a consent signal. See how to set it up, how to test it and how it differs from Google's Consent Mode.
What it is
UET, short for Universal Event Tracking, is the Microsoft Advertising tag. It records visits and conversions on the site to measure campaigns and build remarketing lists.
UET Consent Mode is the way to tell this tag about the visitor's choice in the cookie banner. With the signal in hand, the tag decides on its own whether it can set cookies and use identifiers or whether it must work in a limited way.
Today, Microsoft enforces the rule based on one main signal, ad_storage, which can be granted or denied. The site can also send ad_user_data and ad_personalization, the same names Google uses, but enforcement is based on ad_storage.
There is a second accepted path: instead of Consent Mode, the tag can read consent through IAB Europe's TCF. Microsoft advises choosing one of the two, never both at the same time.
Checklist
If the site has the UET tag and receives visits from the EEA, the UK or Switzerland, these points need to be working.
Where the law requires consent, such as in the EEA and the UK, the Microsoft Advertising contract requires consent before activating the tag. Cookies stored before the banner or after a refusal count as a violation.
Since May 5, 2025, Microsoft requires Consent Mode or TCF from anyone with visitors from the EEA, the UK and Switzerland. Without a signal, it stops recording conversions and feeding remarketing.
Right after the tag, set ad_storage to denied. When the visitor accepts, send granted and repeat the update on the following pages.
<!-- código da UET aqui -->
<script>
window.uetq = window.uetq || [];
window.uetq.push('consent', 'default', {
'ad_storage': 'denied'
});
</script>
<!-- quando o visitante aceita -->
<script>
window.uetq = window.uetq || [];
window.uetq.push('consent', 'update', {
'ad_storage': 'granted'
});
</script>The cookies MUID, _uetvid, _uetsid, _uetsid_exp, _uetvid_exp and MSPTC cannot be stored without consent.
Open the site in an incognito window, click Reject and check that no _uet cookie appears.
Use Consent Mode or TCF, never both at the same time. Microsoft itself gives this warning.
Include Microsoft, vendor 1126, and Xandr, vendor 32, in the CMP. Without purposes 7, 9 and 10, no conversion is recorded.
<!-- antes do código da UET, em todas as páginas -->
<script>
window.uetq = window.uetq || [];
window.uetq.push('config', 'tcf', { 'enabled' : true });
</script>For Google personalized ads, the EEA and the UK have required a TCF-certified CMP since January 16, 2024. Switzerland has required it since July 31, 2024.
Choose a CMP certified by Google that also sends the signal to UET, so you use a single banner.
In practice
Official tools
Microsoft publishes the list of CMPs with UET integration, and Google keeps the list of CMPs certified for the EEA, the UK and Switzerland.
Who it applies to
The rule comes from the platform, not from a specific law. It applies to those who use the tag and receive visits from regions with prior consent.
Those who measure conversions or build audiences with UET must send the signal for visits from the EEA, the UK and Switzerland.
AdSense sites that run Bing campaigns to attract visits usually have UET installed. The rule applies to them too.
Those who install UET through Google Tag Manager must turn on consent in the official template or in the custom code.
For visitors from other countries, if no signal is sent, UET considers consent granted. Local laws may require more.
Definitions
These names appear in the code, in the Microsoft Advertising dashboard and in the UET test extension.
The signal Microsoft enforces. When granted, UET reads and sets cookies. When denied, it does not set the site's own cookies or third-party cookies.
Optional signals the site can send, with the same names as Google's. Today Microsoft's enforcement is only on ad_storage.
A field sent in every UET event with the consent state: denied or granted. It is what you check in tests.
MUID, _uetvid, _uetsid, _uetsid_exp, _uetvid_exp and MSPTC. None of them can be set without consent.
In the tag dashboard, it shows whether the signal is healthy, above 75% of events, moderate or missing.
Official extension for Edge and Chrome that shows each UET event and the asc value in real time.
The two modes
Both respect the visitor's choice. The difference is in what happens before the click on the banner.
UET loads from the start with consent denied. Until there is a response, it collects only anonymous data, which is later aggregated for modeling. It is the mode Microsoft recommends.
UET is blocked and only loads after the visitor accepts. Before that, no data is sent to Microsoft.
How to implement
<!-- código da UET aqui -->
<script>
// 1. Padrão: negado até o visitante escolher
window.uetq = window.uetq || [];
window.uetq.push('consent', 'default', {
'ad_storage': 'denied'
});
</script>
<script>
// 2. Quando o visitante aceita (a CMP faz isso)
window.uetq = window.uetq || [];
window.uetq.push('consent', 'update', {
'ad_storage': 'granted'
});
</script>Alternative through TCF
If the site already has a CMP with IAB Europe's TCF, UET can read the TC string directly. For this, a small configuration snippet turns on TCF in UET and must come before the tag code on every page.
In the banner, include Microsoft, vendor 1126, and Xandr, vendor 32. Microsoft asks for consent for purposes 1, 3, 4, 7, 9 and 10. Without purposes 7, 9 and 10, no conversion is recorded. Without purpose 1, the tag does not use cookies.
If the CMP does not respond within 500 milliseconds or is in an error or loading state, UET keeps working without TCF. So a slow CMP can cause the signal to be lost.
Microsoft Advertising has accepted TCF since July 24, 2023. The golden rule is to choose only one path: Consent Mode or TCF.
Timeline
The dates that most affect those who have visits from Europe in Microsoft campaigns.
Microsoft Advertising starts accepting consent through IAB Europe's TCF.
Microsoft publishes the notice asking advertisers to send consent signals by May 5.
Microsoft starts enforcing Consent Mode or TCF for all customers with visitors from these regions.
Enforcement and AdSense
Enforcement is done by the platform itself. According to Microsoft, if the site uses UET without Consent Mode and without TCF, it stops recording UET conversions and feeding remarketing lists for that traffic. Campaigns lose data and optimization gets worse.
The Microsoft Advertising agreement also requires consent where the law asks for it, as in the EEA and the UK. Cookies set before the click on the banner or after a refusal are treated as a violation.
For those with AdSense or Ad Manager, UET is one more tag on the same page. Google's Consent Mode takes care of Google tags, and TCF takes care of the ads. UET must receive its own signal from the same CMP.
The big difference from Google is that Microsoft enforces only ad_storage and accepts TCF as an alternative to Consent Mode, while Google works with four signals. The similar names cause confusion, but the commands are separate.
Common errors
Most appear on sites that set up Google's Consent Mode and thought Microsoft was covered.
The CMP sends Google's Consent Mode, but sends nothing to UET. For Microsoft, the signal is missing.
The site turns on both paths at the same time. Microsoft advises using only one.
UET loads without a denied default and sets MUID or _uetvid before the visitor chooses.
The choice is sent on the click, but not on the following pages. Conversion events go out without the right asc.
The banner does not ask for purposes 7, 9 and 10. Even with acceptance, no conversion is recorded.
Microsoft, vendor 1126, does not appear in the CMP's list. The TC string never gives it permission.
In practice
Practical examples for sites with visits from Europe and other countries.
In ConsentMode
Not necessarily. They are separate commands. Some CMPs and the official UET template in GTM pass the signal along, but you need to check whether UET is receiving ad_storage.
You can, but today Microsoft only enforces ad_storage. Sending the other two does no harm and makes the code look like Google's.
Only for visits from the EEA, UK and Switzerland. Outside these regions, UET considers consent granted when no signal is sent, but local law may require more.
Microsoft recommends advanced mode, which measures better for those who decline. Basic is simpler and sends nothing before the choice. Validate with your legal team.
Use the UET Tag Helper and look at the asc on each event, or check the consent signal column in the tag dashboard. A ConsentMode audit also shows this with screenshots.
Library
This guide was written from these official pages. Read them directly at the source:
The audit opens the site as a European visitor and shows what the Microsoft tag does before and after the choice.