Microsoft Clarity Consent Mode
Starting October 31, 2025, Microsoft Clarity enforces consent signal requirements for page visits originating from the European Economic Area (EEA), United Kingdom (UK), and Switzerland (CH). A valid consent signal is required to ensure full functionality of Clarity features for users in these regions.
Microsoft Clarity Collects user session data using a cookie. The cookie tells Clarity how a user accessed your site, the user's location, the user's language preference, and more.
As a website publisher, you might be subject to data protection laws that require you to obtain consent before collecting users’personal information – such as the EU's GDPR and ePrivacy Directive. Other regulations may require you to provide users with the ability to opt out of cookie usage.
Cookiebot CMP has built-in support for Microsoft Clarity. You must set up Cookiebot CMP with Microsoft Clarity once you start collecting or passing user data to Microsoft.
How does Microsoft Clarity Consent Mode work
Clarity uses two parameters to communicate user consent:
ad_Storage: Indicates whether the user has consented to Microsoft processing data for advertising purposes.
Acceptable values are GRANTED or DENIED.
analytics_Storage: Indicates whether the user has given Microsoft consent to store analytics-related data.
Acceptable values are GRANTED or DENIED.
The permission ad_Storage is mapped to the Marketing category and the permission analytics_Storage is mapped to the Statistics category.
The value ad_Storage is set to GRANTED only when the user has given consent for the Marketing category and the value analytics_Storage is set to GRANTED only when the user has given consent for the Statistics category.
Setting up Microsoft Clarity Consent Mode on Cookiebot CMP
No further configuration is needed in addition to adding the CMP script as Clarity Consent Mode is enabled by default. You can however disable it.
Disabling Clarity can be achieved in 2 ways:
By adding the following attribute to the script:
data-ms-clarity-consent-mode="disabled"
By adding the following parameter to the URL:
?msClarityConsentMode=disabled
When enabled, Clarity automatically adjusts its behavior based on the user’s consent status, and only uses user data for ads and optimization if consent is given. The permissions are mapped to the following categories:
Marketing
Statistics
Comments
0 comments
Article is closed for comments.