Home > Docs > Set up Microsoft Clarity Consent Mode v2

Set up Microsoft Clarity Consent Mode v2

Last updated on November 7, 2025

Microsoft Clarity Consent Mode is a feature designed to help website owners comply with privacy regulations like the GDPR, CCPA, and similar laws that require user consent before tracking or setting cookies. When integrated with WebToffee’s GDPR Cookie Consent plugin, it ensures that Microsoft Clarity only collects and processes user data after explicit consent is given, thereby aligning with legal requirements.

Clarity Consent Mode operates by relying on signals from your Consent Management Platform (CMP)—in this case, the WebToffee plugin—to determine whether cookies and tracking should be activated for a specific user session. Here’s how it typically operates:

  1. By default, Clarity sets cookies to track user behavior. Its tracking is paused until the CMP provides a consent signal or a custom script manually triggers it.
  2. CMP then signals user consent for analytics or advertisement cookies to Clarity using the Clarity API.
  3. CMP notifies Clarity when consent is granted. Once consent is signaled, Clarity starts tracking user behavior and setting cookies as necessary. The mapping between the CMP categories and the Claritiy cookies are done as follows:
Cookie NameCategoryPurposeExpiry
_clckAnalyticsTracks user behavior across pages.1 year
_clskAnalyticsLinks multiple page views to a session.24 hours
CLIDAnalyticsIdentifies first-time users.1 year
MUIDAdvertisementAd targeting and cross-domain tracking.1 year
ANONCHKAdvertisementAd performance and secure ad delivery.Session

Microsoft Clarity’s new Consent API V2 marks a significant step forward in privacy compliance and user transparency. Replacing the earlier all-or-nothing consent model, V2 introduces a granular consent system that lets users decide separately whether to allow Analytics or Advertising data collection. This ensures tracking only begins once explicit consent is granted. The difference between v1 and v2 is listed below:

Consent mode behaviorVersion 1Version 2
ConsentedSingle all-or-nothing consent — users either allow or block all tracking.Separate consent options for Analytics and Advertising, allowing granular control.
Non-Consented Tracking disabled (no cookies set)Operates in no-consent cookieless mode with limited tracking. No first- or third-party cookies.
  1. Go to your Clarity project settings and disable the automatic cookie settings. To Disable cookies, go to Clarity > Settings > Setup > Advanced settings. Then, turn off Cookies.
Microsoft Clarity - Disable automatic cookie
Microsoft Clarity – Disable automatic cookie
  1. In your WordPress settings, click on Cookie Consent > Microsoft consent mode tab, then enable Microsoft Clarity Consent Mode.
Microsoft Clarity Consent - GDPR Cookie Consent Plugin
Microsoft Clarity Consent – GDPR Cookie Consent Plugin
  1. Test your implementation using the browser developer tools. Verify whether the above-mentioned cookies are set after consent is obtained. Values will not be associated with the cookie until consent is given.
Browser developer tool - Test your implementation
Browser developer tool – Test your implementation