Advertising vendor · Microsoft Corporation
Microsoft Advertising Cookies: List With Purpose and Retention
Last verified 2026-10-17 · Updated 2026-10-17
On this page
Cookies Microsoft Advertising Sets on Your Site
The Microsoft Advertising UET tag sets up to 3 cookies and 2 local storage keys on your domain, led by _uetvid, and Microsoft sets MUID on bing.com.
| Name | Type | Category | Party | Retention | What it does |
|---|---|---|---|---|---|
_uetmsclkid | Cookie | Advertising | First-party | 90 days (3 months) | The _uetmsclkid cookie stores the Microsoft Click ID of a visitor who clicked a Microsoft ad, for 90 days. |
_uetsid | Cookie | Advertising | First-party | 1 day | The _uetsid cookie holds the session ID of the Microsoft Advertising UET tag for 1 day. |
_uetsid | Local storage | Advertising | First-party | No expiry | The _uetsid local storage key keeps a copy of the UET session ID next to the _uetsid_exp expiry key. |
_uetvid | Cookie | Advertising | First-party | 13 months (390 days) | The _uetvid cookie is a Microsoft Advertising UET advertising cookie that recognises a returning visitor for 13 months and needs consent in the EU. |
_uetvid | Local storage | Advertising | First-party | No expiry | The _uetvid local storage key keeps a copy of the UET visitor ID next to the _uetvid_exp expiry key. |
MUID | Cookie | Advertising | Third-party | 13 months (390 days) | The MUID cookie on bing.com identifies a browser across Microsoft sites and UET beacon calls. |
Scripts, Pixels, and Endpoints Microsoft Advertising Loads
Microsoft Advertising loads 2 known scripts, pixels, and data endpoints. Each row gives the host to look for in the Network tab of Chrome DevTools or in a cookie scanner report.
| Type | Resource | Host | What it does |
|---|---|---|---|
| Script | UET tag (bat.js) | bat.bing.com | The UET tag loads from bat.bing.com and writes the _uetvid and _uetsid cookies once ad_storage is granted. |
| Data endpoint | UET event endpoint (bat.bing.com/action) | bat.bing.combat.bing.net | The UET event endpoint receives every page view and conversion, with the vid from the _uetvid cookie and the consent state in the asc parameter. |
Does Microsoft Advertising Need Consent?
Yes, the Microsoft Advertising cookies need consent in the EU and the UK, and need no prior opt-in in California. The table gives the rule for each law, taken from the page of the _uetvid cookie.
| Law | Consent before the cookies are set | Opt-out right | Source |
|---|---|---|---|
| EU ePrivacy Directive + GDPR | Required | Withdraw at any time | Article 5(3), ePrivacy Directive |
| UK PECR | Required | Withdraw at any time | Regulation 6 and Schedule A1, PECR |
| California CCPA | No general opt-in | Opt out of sale and sharing | Cal. Civ. Code 1798.120 |
The consent table describes what each law requires and is not legal advice. Whether a law applies to your site depends on where your visitors are, where your business is based, and how you set up Microsoft Advertising, such as Microsoft UET Consent Mode and auto-tagging of the Microsoft Click ID.
Read the reason for each answer in the consent rules for the _uetvid cookie.
How to Add Microsoft Advertising to a Consent Banner
Add Microsoft Advertising to a consent banner by holding back the UET tag until the visitor accepts advertising cookies. Both TermsFeed products block Microsoft Advertising in the Advertising category.
Add Microsoft Advertising to TermsFeed Free Cookie Consent
TermsFeed Free Cookie Consent runs a tagged script only after the visitor accepts its category. Change type="text/javascript" to type="text/plain" and add data-cookie-consent="targeting".
<script type="text/plain" data-cookie-consent="targeting">
(function(w,d,t,r,u){var f,n,i;w[u]=w[u]||[],f=function(){var o={ti:"YOUR_TAG_ID", enableAutoSpaTracking: true};o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad")},n=d.createElement(t),n.src=r,n.async=1,n.onload=n.onreadystatechange=function(){var s=this.readyState;s&&s!=="loaded"&&s!=="complete"||(f(),n.onload=n.onreadystatechange=null)},i=d.getElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)})(window,document,"script","//bat.bing.com/bat.js","uetq");
</script>
Cookie Consent is free and needs no account. Build your free consent banner with TermsFeed Free Cookie Consent.
Add Microsoft Advertising to TermsFeed Privacy Consent
Add Microsoft Advertising from its template in TermsFeed Privacy Consent and type your UET tag ID, which Microsoft Advertising shows under Tools, Conversions, and UET tag. Privacy Consent sends the default ad_storage signal of Microsoft UET Consent Mode before any tag runs and loads the UET tag only after the visitor accepts the Advertising vendor category.
The Microsoft Advertising template asks for the UET tag ID and fills every other field of the vendor. Pick the "Microsoft Advertising" card under Advertising, enter the UET tag ID, and click "Add Microsoft Advertising". Find the UET tag ID in Microsoft Advertising under Tools › Conversions › UET tag. The illustration shows the template form in the TermsFeed app.
Privacy Consent detects the location of each visitor and records every answer in a consent log. Set up Microsoft Advertising from its template with TermsFeed Privacy Consent.
Follow every step, the vendor settings, and the check in Chrome DevTools in how to block the _uetvid cookie.
Who Runs Microsoft Advertising
Microsoft Corporation runs Microsoft Advertising from the United States, and Microsoft Ireland Operations Limited is the Microsoft company in Dublin for the European Economic Area (EEA). The UET tag loads from bat.bing.com and reports page views and conversions to Microsoft Advertising.
Read how Microsoft Corporation handles the data in the Microsoft Advertising privacy policy. Both documents appear in the sources at the end of this page.
Microsoft Advertising Cookie FAQs
Does Microsoft Advertising need consent?
Yes, the Microsoft Advertising cookies need consent in the EU and the UK, and need no prior opt-in in California. Firstly, the ePrivacy Directive requires consent before a site sets the advertising cookies of Microsoft Advertising. Secondly, the UK PECR requires consent before a site sets the advertising cookies of Microsoft Advertising. Thirdly, the CCPA sets no general opt-in requirement for the advertising cookies of Microsoft Advertising, and the table gives the opt-out right of visitors. The consent section of this page gives the table for each law.
How long do Microsoft Advertising cookies last?
The cookies of Microsoft Advertising last from 1 day to 13 months (390 days). The _uetsid cookie lasts the shortest time, and the _uetvid cookie lasts longest. The retention column of the cookie list gives the lifetime of each cookie.
How do I block Microsoft Advertising cookies?
Block the Microsoft Advertising cookies by holding back the UET tag until the visitor accepts advertising cookies. Tag the UET tag with data-cookie-consent="targeting" in TermsFeed Free Cookie Consent, or add Microsoft Advertising as a vendor in TermsFeed Privacy Consent. The page of the _uetvid cookie gives the full steps and the settings of Microsoft Advertising.
Sources for the Microsoft Advertising Cookies
The facts on this page come from the documentation Microsoft publishes, checked on 2026-10-17. The list gives every source, so you check each fact yourself.
- Microsoft Learn, FAQ: Universal Event Tracking
- Microsoft Learn, Setting up UET for consent mode
- Microsoft Learn, FAQ: UET and user consent
- Microsoft Advertising Blog, Providing user consent signals by May 5, 2025
- TermsFeed check of the UET tag in Chrome before and after a consent update, 17 October 2026 (internal)
- Microsoft Advertising privacy policy