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:
- 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.
- CMP then signals user consent for analytics or advertisement cookies to Clarity using the Clarity API.
- 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 Name | Category | Purpose | Expiry |
---|---|---|---|
_clck | Analytics | Tracks user behavior across pages. | 1 year |
_clsk | Analytics | Links multiple page views to a session. | 24 hours |
CLID | Analytics | Identifies first-time users. | 1 year |
MUID | Advertisement | Ad targeting and cross-domain tracking. | 1 year |
ANONCHK | Advertisement | Ad performance and secure ad delivery. | Session |
Steps to enable Microsoft Clarity Consent Mode in CMP
- 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.
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.
- In your WordPress settings, click on Cookie Consent > Microsoft consent mode tab, then enable Microsoft Clarity Consent Mode.
- 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.