Discount Sale
  • Days
  • Hrs
  • Mins
  • Secs
30% Off

Use coupon code 'MDS30' Limited Offer!!

Star

Home > Docs > Set up Microsoft Clarity Consent Mode

Set up Microsoft Clarity Consent Mode

Last updated on May 5, 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
  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 the Cookies.
Microsoft Clarity - Disable automatic cookie
Microsoft Clarity – Disable automatic cookie

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.

  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