Skip to content
Meneer Marketing, to homeNederlands
Nederlands

What is the UET tag in Microsoft Ads and how do you set it up with consent?

If you want to know what a click brings in on Microsoft Ads, you need the UET tag. In the European Economic Area, the United Kingdom and Switzerland, Microsoft requires the tag to know what the visitor chose in your cookie banner. My source is Microsoft's explanation of UET and consent, which I read on 24 and 25 November 2026. This isn't legal advice: Microsoft itself writes that you remain responsible for following the rules.

What is the UET tag and what do you need it for?

UET stands for Universal Event Tracking. The UET tag is a piece of code on your site that records what visitors do and passes it on to Microsoft Advertising. According to Microsoft, you need it for three things: counting enquiries and orders, remarketing in search campaigns, and bid strategies that steer on results, such as Maximize conversions. Microsoft also mentions the tag in connection with audiences, such as lists of people who are looking to buy, although you can set up those lists without a tag too. If you want to create a store in Microsoft Merchant Center, you can verify your domain with the tag.

Microsoft also writes that you can use the tag's data to measure ads on other Microsoft platforms, such as LinkedIn Ads, if you switch that on. You can disconnect it in LinkedIn's Campaign Manager. Without the tag, you can buy clicks, but you can't see what they bring in.

Microsoft asks your site to pass the visitor's choice on to the UET tag, through Consent Mode or TCF. If you don't, Microsoft stops counting results through UET and stops filling your remarketing lists (as of 25 November 2026). A bid strategy based on results then has nothing left to steer on. If you do pass on the signal, the counting carries on, although the numbers may come out lower, depending on what visitors choose in your cookie banner.

Microsoft accepts two ways. Consent Mode for UET is Microsoft's own solution. TCF is a standard from IAB Europe that sites use to ask for and share consent. Never use both at once, Microsoft says.

WayWhat happensWhat Microsoft says about it
Consent Mode, basicThe tag only loads once the visitor has given consent. Nothing is sent before thatGeneral modelling
Consent Mode, advancedThe tag loads straight away with the status denied. If consent is refused, only anonymous data is collected and combined laterMicrosoft recommends this as best practice, with more accurate modelling
TCF 2.0Your cookie banner creates a TCF string that the tag reads to see what the visitor choseYou add Microsoft (vendor number 1126) and Xandr (32) as vendors

Consent Mode works with one value: ad_storage, granted or denied. With denied, the tag doesn't read or write cookies on your own site, and doesn't write Microsoft cookies. Microsoft cookies are then only read to spot fraud and spam. For now, Microsoft only enforces ad_storage. You can send values such as ad_user_data and ad_personalization along, but you don't have to. If nothing is set, that counts as granted in most countries. In the EEA, the United Kingdom and Switzerland, where Microsoft enforces Consent Mode, the default is denied.

Microsoft names a list of cookie banners that already support Consent Mode, including Cookiebot, Complianz, CookieYes, Didomi, Iubenda, OneTrust and Usercentrics. If you use Google Tag Manager, you pass on the signal with the official UET template. If you already use Consent Mode for Google Ads, you can read how it works there in consent mode for Google Ads. You pass on consent for Microsoft separately, alongside the one for Google.

How do you put the UET tag on your site?

There are three routes, from easy to do-it-yourself:

  • With Google Tag Manager. Microsoft recommends the direct integration as the easiest route. You create the tag in Microsoft Advertising, sign in to Google and choose your Tag Manager account and container. Microsoft then puts the base tag on every page itself and can copy your Google Analytics 4 events to matching UET events. It can take up to 24 hours for Microsoft to check the tag, and you create your goals yourself afterwards. The official UET template in Tag Manager works too.
  • In Shopify. If you install the Microsoft Advertising app for Shopify, it creates the tag and puts it on every page. The app is available in the Netherlands, in English. Without the app, you can add the code as a custom pixel under Customer events.
  • Straight into your code. You put the tag on every page and the consent script as high up in the head as you can, so the default value is ready before the page has loaded. The tag has to load before the visitor chooses anything in the cookie banner, with the status denied until there's consent.

Which goals can you count?

The tag only counts something once you set a goal. These are the types, according to Microsoft:

Type of goalWhat it countsExample
Destination URLA visit to a particular pageThe thank-you page after an enquiry or order
EventEvery time someone does somethingDownloading a document, watching a video, signing up for your newsletter
DurationEvery visit that lasts longer than a set timePeople who stay on your site for a long time
OfflineA result outside your siteA sale that only closes later or elsewhere

For an enquiry form, the thank-you page is the simplest choice: every enquiry ends up there. For an order, you choose the confirmation page or an event for the purchase. Microsoft is also rolling out a simpler set-up in which it suggests which events you can count. Some accounts don't have it yet.

How do you check that it works?

Microsoft has the UET Tag Helper for testing goals and audiences. After that, test it yourself: accept the cookies, send a test enquiry and see whether the goal counts. Then refuse the cookies and see what happens. The count is allowed to drop when consent is refused; that's the whole point of the setting. Keep an eye on the numbers for the first few days: if the counting stops altogether, the signal probably isn't getting through.

Four things to know. If you use Clarity, Microsoft's free tool for seeing how people behave on your site, alongside the tag, you set the consent for Clarity separately. Microsoft filters sensitive data such as email addresses and credit card numbers out of what the tag passes on. And if you choose healthcare or pharmacy as your industry during set-up, Microsoft switches off remarketing and audiences automatically. If you want to link a store to Merchant Center with the tag as verification, the tag has to have recorded at least 50 events.

Where I come in

Putting the UET tag on your site, linking it to the consent from your cookie banner, setting what counts as an enquiry or order, and testing it all before your campaign goes live: I do that as part of my Microsoft Ads management. I'd much rather make you a tailored proposal, within one working day and with one fixed price per month. Management starts at €180 a month, excluding VAT, and you can stop any month. You'll see what I do on Microsoft Ads management and the rates on Prices. How tracking enquiries works in general is explained in how to track enquiries and orders from your website.

Frequently asked questions

  • What does UET stand for?

    Universal Event Tracking. It's the name Microsoft gives the tracking code of Microsoft Advertising. In practice, most people just call it the UET tag. The code records what visitors do on your site and sends it on to your Microsoft Advertising account.

  • Do I need the UET tag if I only want clicks?

    You can run campaigns without the tag, but then you can't see what the clicks bring in. Microsoft calls the tag a requirement for counting enquiries, remarketing and bid strategies that steer on results. So for a test on Bing, you'll need one.

  • Do I have to use Consent Mode and TCF?

    Pick one: never use both at once. Choose the way that fits your cookie banner. If your cookie banner already uses TCF, that's the logical choice. Otherwise, Consent Mode is the simplest, and Microsoft recommends the advanced version.

  • What is the difference between basic and advanced?

    With basic, the tag only loads once the visitor has given consent. With advanced, it loads straight away with the status denied and, if consent is refused, collects only anonymous data, which is combined later for modelling. Microsoft says the latter is more accurate.

  • What happens if visitors don't give consent?

    With basic, nothing is sent. With advanced, only anonymous data goes along, which Microsoft uses for modelling. So you'll see lower numbers than the real number of enquiries. That's normal, and it depends on how many visitors accept your cookies.

  • Does this work with my cookie banner?

    Microsoft names Cookiebot, Complianz, CookieYes, Didomi, Iubenda, OneTrust and Usercentrics, among others, as banners that support Consent Mode. If yours isn't on the list, you can pass on the signal yourself with Microsoft's script or through TCF.

  • Can I use UET and Clarity together?

    Yes, with one tag. Clarity is Microsoft's free tool that shows how visitors use your site, with heatmaps and session recordings, among other things. You set the consent for Clarity separately, because it doesn't automatically apply to the tag.

  • How many events does the tag need for Merchant Center?

    If you use the tag to verify your domain for Microsoft Merchant Center, it has to have recorded at least 50 events for your domain before it appears as an option. That's why you put the tag on the site well before you create your store.

Sources

Where I quote facts from outside, the official source is listed here.

Do you not want to work this out yourself?

Send me a message with what you want to achieve. I tell you what I would do and what it costs. You usually get a reply within 2 hours, from me.

Amounts and what is included are on Prices.