Which Microsoft consent guide do you need?
- This guide: Clarity's
consentv2API, manual implementation, and the October 2025 deadline. - CookieBeam Clarity bridge: how CookieBeam sends Clarity consent signals automatically.
- UET consent mode explained: the May 2025 UET deadline and
ad_storagesignal. - CookieBeam UET bridge: how CookieBeam sends UET consent signals.
- Clarity and Bing Ads together: combined setup for both tools in one pass.
What is Microsoft Clarity?
Microsoft Clarity is a free behavioral analytics tool that helps website owners understand how visitors interact with their sites through features like session recordings and heatmaps.
The October 2025 Deadline
Starting October 31, 2025, Microsoft Clarity will begin enforcing consent requirements for visitors from the EEA, United Kingdom, and Switzerland.
Data Clarity Collects
Cookies Used
_clck- Stores a unique user ID (12 months)_clsk- Connects page views into a session (1 day)
Data Categories
- Analytics Storage (
analytics_Storage) - Session recordings, heatmaps, user behavior tracking - Ad Storage (
ad_Storage) - Required when Clarity data is connected to advertising platforms
The consentv2 API
1 window.clarity = window.clarity || function(){ 2 (window.clarity.q = window.clarity.q || []).push(arguments); 3 }; 4 5 window.clarity('consentv2', { 6 'ad_Storage': 'granted', 7 'analytics_Storage': 'granted' 8 });
Important: Case Sensitivity
Clarity uses capital S in ad_Storage and analytics_Storage. This differs from Google's lowercase versions.
Integration with Microsoft Advertising (UET)
1 // Microsoft UET uses different API 2 window.uetq = window.uetq || []; 3 window.uetq.push('consent', 'default', { 4 'ad_storage': 'denied' 5 }); 6 7 // Microsoft Clarity 8 window.clarity('consentv2', { 9 'ad_Storage': 'denied', 10 'analytics_Storage': 'denied' 11 });
How CookieBeam Handles This
CookieBeam automatically manages Microsoft Clarity consent mode when you enable Microsoft Consent Mode in your banner settings.
Enable Microsoft Consent Mode
In your CookieBeam dashboard, go to Banner Settings and enable Microsoft Consent Mode to automatically handle consent for both UET and Clarity.