Sites with Clarity installed
Any site that uses Clarity and receives visits from the EEA, the UK or Switzerland must send the signal.
Guide · Microsoft Clarity
Clarity records sessions and creates heatmaps of your site. Since October 31, 2025, visits from the EEA, the UK and Switzerland need a valid consent signal for Clarity to work fully. See the three ways to send this signal and the most common mistakes.
What it is
Microsoft Clarity is a free behavior analytics tool. It shows heatmaps, session recordings and where visitors click, scroll or give up. Many publishers use Clarity to improve the layout and position of ads.
To do this, Clarity uses its own cookies that link the pages of the same visit. In Europe, setting these cookies requires the visitor's prior consent.
That is why Microsoft created a consent mode in Clarity. Since October 31, 2025, visits from the EEA, the UK and Switzerland need to arrive with a valid consent signal for Clarity to work fully.
Without the signal, Clarity does not stop completely. It keeps loading, but without cookies and with limited features. The problem is that reports become incomplete and sessions appear fragmented.
Checklist
If the site uses Clarity and receives visits from the EEA, the UK or Switzerland, these points need to be working.
Since October 31, 2025, visits from these regions must arrive with a valid consent signal. Without it, Clarity does not store cookies and limits features such as recordings and funnels.
Microsoft requires Clarity's consent mode to be on before using any CMP. Each Clarity project needs its own signal.
With your own banner, call the consentv2 API right after the Clarity script loads and before any cookie. Both fields are required.
// Visitante aceitou
window.clarity('consentv2', {
ad_Storage: 'granted',
analytics_Storage: 'granted'
});
// Visitante recusou
window.clarity('consentv2', {
ad_Storage: 'denied',
analytics_Storage: 'denied'
});In the banner, the Clarity cookies must be in a non-essential category. That way they are only stored after acceptance.
Put _clck and _clsk in the Analytics category of the banner, never in Necessary.
Microsoft says you must inform visitors about the cookie that Clarity uses.
We use Microsoft Clarity, with the cookies _clck and _clsk, to understand how visitors use the site.
If the visitor refuses after accepting, send the denied signal. Clarity deletes the cookies it had already stored.
Microsoft says Clarity should not be used on sites or apps directed at people under 18.
For Google personalized ads, the EEA and the UK have required a TCF-certified CMP since January 16, 2024. Switzerland has required it since July 31, 2024.
Clarity reads Google's Consent Mode, so the same certified banner can cover both.
In practice
Official tools
Microsoft publishes the list of CMPs that pass the signal to Clarity on their own, and Google keeps the list of CMPs certified for the EEA, the UK and Switzerland.
Who it applies to
The rule is Microsoft's own and applies to any Clarity project with visits from the three regions.
Any site that uses Clarity and receives visits from the EEA, the UK or Switzerland must send the signal.
The ads signal decides whether Clarity can share data with Microsoft Advertising.
Clarity reads Google Consent Mode signals on its own. For these sites, the adjustment is usually small.
Consent mode comes turned on by default only for the EEA, the UK and Switzerland. Local laws, such as the LGPD, still apply.
Definitions
These names appear in the dashboard, in the code and in Microsoft's guides.
Consent to store analytics data, such as site usage and interaction patterns. When denied, Clarity collects only cookieless data.
Consent for ad-related data. When denied, Clarity does not share data with Microsoft Ads.
Without consent, Clarity creates a new identifier on each page view and does not set cookies to link the visit.
Clarity's own cookies. They are deleted when the visitor declines after having accepted.
The official command to send both signals from a custom banner or a CMP without integration.
A project setting in which Clarity waits for a valid signal before setting cookies.
With and without a signal
The difference shows up directly in the recordings and heatmap reports.
Clarity sets the _clck and _clsk cookies, links the pages of the same visit and delivers complete recordings and heatmaps.
Clarity loads, but without cookies. Each page view becomes a separate record, and some features do not work.
The three paths
Microsoft accepts three ways. Use the one that matches what the site already has.
Recommended for sites that already use Google Consent Mode. Clarity recognizes the signals with no extra setup.
Several CMPs, such as Cookiebot, CookieYes, Usercentrics and Axeptio, send the signal to Clarity on their own. You need to turn on consent mode in the project.
For custom banners or CMPs without integration. The site calls the API right after the Clarity script loads.
How to implement
// Visitante aceitou tudo
window.clarity('consentv2', {
ad_Storage: 'granted',
analytics_Storage: 'granted'
});
// Visitante recusou tudo
window.clarity('consentv2', {
ad_Storage: 'denied',
analytics_Storage: 'denied'
});Visitor rights
While the visitor has not responded, Clarity treats consent as denied. Only after a granted signal does it start setting cookies.
Consent lasts up to 9 months, unless the visitor changes the choice earlier or local settings call for a shorter period. After that, the site must ask again.
If the visitor accepts and then changes their mind, the site must tell Clarity. On receiving the refusal, Clarity deletes the cookies it had already set, ends the current session and goes back to collecting without cookies.
The old consent API still works, but Microsoft says it will be discontinued and should no longer be used in new implementations. The current path is consentv2.
Enforcement and AdSense
Technical enforcement is Microsoft's own. Without a valid signal, Clarity limits features for visits from the EEA, the UK and Switzerland. The documentation does not mention a fine: the effect is having incomplete data for that traffic.
Legal enforcement is by European data protection authorities. Setting analytics cookies without consent, on a site with European visitors, can be challenged by them like any other non-essential cookie.
For those with AdSense or Ad Manager, the good news is that Google Consent Mode, sent by the certified CMP, is also read by Clarity. A single well-configured banner can serve Google and Clarity at the same time.
Note: Clarity and the Microsoft Advertising UET tag are different tools. Clarity's signal does not replace the signal that UET needs to receive.
Common errors
The mistakes show up on both sides: a signal that does not arrive and a cookie set too early.
The project keeps setting cookies by default. Clarity does not wait for the signal before setting them.
The signal is only sent long after the script loads. Part of the visit goes out without consent.
The site sends analytics_Storage and forgets ad_Storage, or the other way around. The API asks for both.
The visitor changes their mind in the banner, but Clarity does not receive the refusal and keeps the cookies.
The site still uses the old consent command, which Microsoft plans to discontinue.
The Clarity script loads before the CMP exists on the page, and no signal arrives in time.
In practice
Practical examples for publishers who use Clarity to improve layout and ads.
In ConsentMode
No. It loads and collects cookieless data. But sessions become fragmented and some features do not work for visits from the three regions.
Clarity's requirement applies to visits from the EEA, the UK and Switzerland. For the Brazilian audience, the LGPD also asks for transparency about cookies in the privacy policy.
According to Microsoft, Clarity reads Google Consent Mode signals with no extra change. Check anyway that cookies only appear after acceptance.
Outside the three regions, Microsoft does not require the signal. For European visitors, without a banner Clarity stays in cookieless mode and recordings lose continuity.
No. Clarity is an analytics tool. UET is the Microsoft Advertising conversion tag. Each one needs its own signal.
The Clarity documentation includes a metadata command that shows the state in the console. Or run a ConsentMode audit, which checks the cookies before and after the click.
Library
This guide was written from these official pages. Read them directly at the source:
The audit opens the site as a European visitor and shows what Clarity records before and after the banner.