Analytics vendor · Microsoft Corporation
Microsoft Clarity Cookies: List With Purpose and Retention
Last verified 2026-10-16 · Updated 2026-10-16
On this page
Cookies Microsoft Clarity Sets on Your Site
Microsoft Clarity sets 2 cookies on your domain, _clck and _clsk, and Microsoft lists 5 more on Microsoft domains, such as CLID and MUID.
| Name | Type | Category | Party | Retention | What it does |
|---|---|---|---|---|---|
_clck | Cookie | Analytics | First-party | 1 year (365 days) | The _clck cookie is a Microsoft Clarity analytics cookie that keeps a visitor ID for up to 1 year and needs consent under the ePrivacy Directive. |
_clsk | Cookie | Analytics | First-party | 1 day | The _clsk cookie joins the page views of a visit into a single Clarity session recording. |
ANONCHK | Cookie | Analytics | Third-party | Session | The ANONCHK cookie on clarity.ms says whether Microsoft transferred the MUID to an ad cookie, and Clarity always sets the flag to 0. |
CLID | Cookie | Analytics | Third-party | 1 year (365 days) | The CLID cookie on clarity.ms records the first time Clarity saw the browser on any site that uses Clarity. |
MR | Cookie | Advertising | Third-party | Not documented | The MR cookie on Microsoft domains tells Microsoft whether to refresh the MUID cookie. |
MUID | Cookie | Advertising | Third-party | 1 year (365 days) | The MUID cookie identifies a browser across Microsoft sites for advertising, site analytics, and operations. |
SM | Cookie | Advertising | Third-party | Not documented | The SM cookie on Microsoft domains keeps the MUID cookie in sync across Microsoft domains. |
Scripts, Pixels, and Endpoints Microsoft Clarity Loads
Microsoft Clarity loads 3 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 | Clarity tag loader (www.clarity.ms/tag) | www.clarity.ms | The tag loader reads your Clarity project settings and loads the Clarity script. |
| Script | Clarity script (clarity.js) | scripts.clarity.ms | The Clarity script records clicks, scrolls, and page changes, and writes the _clck and _clsk cookies. |
| Data endpoint | Clarity collection endpoint | f.clarity.ms | The collection endpoint receives the recorded session data with the Clarity user ID from the _clck cookie. |
Does Microsoft Clarity Need Consent?
Yes, the Microsoft Clarity 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 _clck 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 | None while the vendor acts as a service provider | 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 Clarity, such as the Clarity cookie setting and the Clarity consent signal.
Read the reason for each answer in the consent rules for the _clck cookie.
How to Add Microsoft Clarity to a Consent Banner
Add Microsoft Clarity to a consent banner by holding back the Clarity tracking code until the visitor accepts analytics cookies. Both TermsFeed products block Microsoft Clarity in the Analytics category.
Add Microsoft Clarity 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="tracking".
<script type="text/plain" data-cookie-consent="tracking">
(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "YOUR_PROJECT_ID");
</script>
Cookie Consent is free and needs no account. Build your free consent banner with TermsFeed Free Cookie Consent.
Add Microsoft Clarity to TermsFeed Privacy Consent
Add Microsoft Clarity from its template in TermsFeed Privacy Consent, and the Clarity script loads only after the visitor accepts, with the Clarity consent signal sent for you. Privacy Consent sends analytics_Storage from the Analytics vendor category and ad_Storage from the Advertising vendor category.
The Microsoft Clarity template asks for the Project ID and fills every other field of the vendor. Pick the "Microsoft Clarity" card under Analytics, enter the Project ID, and click "Add Microsoft Clarity". Find the Project ID in Clarity under Settings › Overview. 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 Clarity from its template with TermsFeed Privacy Consent.
Follow every step, the vendor settings, and the check in Chrome DevTools in how to block the _clck cookie.
Who Runs Microsoft Clarity
Microsoft Corporation runs Microsoft Clarity from the United States. Clarity records clicks, scrolls, and page content for session recordings and heat maps, and Microsoft offers Clarity free of charge.
Read how Microsoft Corporation handles the data in the Microsoft Clarity privacy policy. Both documents appear in the sources at the end of this page.
Microsoft Clarity Cookie FAQs
Does Microsoft Clarity need consent?
Yes, the Microsoft Clarity 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 analytics cookies of Microsoft Clarity. Secondly, the UK PECR requires consent before a site sets the analytics cookies of Microsoft Clarity. Thirdly, the CCPA sets no general opt-in requirement for the analytics cookies of Microsoft Clarity, 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 Clarity cookies last?
The cookies of Microsoft Clarity with a documented lifetime last up to 1 year (365 days), and 1 cookie lasts for the browser session. A session cookie such as ANONCHK has no expiry date, and the _clck cookie lasts longest. 2 cookies have no documented lifetime. Check their expiry in Chrome DevTools on your own site. The retention column of the cookie list gives the lifetime of each cookie.
How do I block Microsoft Clarity cookies?
Block the Microsoft Clarity cookies by holding back the Clarity tracking code until the visitor accepts analytics cookies. Tag the Clarity tracking code with data-cookie-consent="tracking" in TermsFeed Free Cookie Consent, or add Microsoft Clarity as a vendor in TermsFeed Privacy Consent. The page of the _clck cookie gives the full steps and the settings of Microsoft Clarity.
Sources for the Microsoft Clarity Cookies
The facts on this page come from the documentation Microsoft publishes, checked on 2026-10-16. The list gives every source, so you check each fact yourself.
- Microsoft Learn, Clarity cookies
- Microsoft Learn, Clarity Cookie Consent API (ConsentV2)
- TermsFeed website auditor scan, 9 October 2026 (internal)
- Microsoft Clarity privacy policy