What Microsoft Clarity offers
Microsoft Clarity is a free behavior analytics tool: it records how visitors click, scroll and move on your pages and turns that into heatmaps, session recordings and frustration indicators. Where GA4 tells you a page converts poorly, Clarity helps you see why.
Microsoft's documentation lists five heatmap types: click maps, scroll maps, area maps, conversion maps and attention maps. Heatmaps can be generated for a single page or a group of pages, and according to Microsoft there is no minimum traffic requirement. On top of that come individual session recordings and a dashboard with metrics such as rage clicks and dead clicks.
The other side is that this is a tool that watches people's behavior on your site. It needs careful configuration on two fronts: consent and data masking.
Installation and consent
Clarity is installed with a script on the site, through Google Tag Manager or via integrations for the main platforms. The part that needs most care is consent.
What changed on 31 October 2025
Microsoft states that from 31 October 2025 Clarity enforces a valid consent signal for visits from the European Economic Area, the UK and Switzerland. For these visitors Consent Mode is enabled by default: Clarity sets no cookies until it receives consent. Without consent it runs in a limited mode, assigning a different ID to every page view. In practice recordings break page by page and you cannot follow a complete journey.
How to connect your cookie banner
- In your Clarity project, under Settings > Setup, turn off default cookies if you never want them set before consent, including outside Europe.
- If your CMP is one Clarity supports, enable the integration; otherwise, when the user accepts the statistics category, call
window.clarity('consentv2', { ad_Storage: "granted", analytics_Storage: "granted" }). - If you use Google Tag Manager, you can also fire the Clarity tag only after consent, with a trigger tied to the banner. The basics are in our Google Tag Manager guide.
- Check from the browser console with the
clarity('metadata', ...)function given in the documentation: before consent the status must show as denied and the_clckand_clskcookies must not appear.
On the regulatory side, EU data protection authorities generally exempt from consent only analytics that produce aggregate statistics with minimized data and no onward use by the provider; Italy's Garante set out conditions of this kind in its 2021 cookie guidelines. Session recordings by a third-party tool go beyond aggregate statistics, and the EDPB's Guidelines 2/2023 make clear that Article 5(3) of the ePrivacy Directive covers not only cookies but other techniques such as pixels and scripts. That is why we activate Clarity only after consent. This is not legal advice. If you already use Consent Mode for GA4, the logic is the same as described in our article on Google Consent Mode v2.
Masking sensitive data
Masking in Clarity happens before data is sent: according to Microsoft, masked content is never uploaded. The options are under Settings > Masking.
- Strict: all text is masked.
- Balanced (default): content classified as sensitive, meaning numbers and email addresses, is masked.
- Relaxed: no content is masked, except input fields and dropdowns, which stay masked in every mode.
For an online store or a site with a logged-in area, we start from Balanced and add element rules: enter a CSS selector such as .account-details and set it to Mask. Alternatively, add the data-clarity-mask="True" attribute directly in the HTML. Two details from the documentation: Clarity does not mask content inside style sheets, so keep personal data out of CSS, and changes apply only to new recordings, with a delay of up to an hour.
Heatmaps: how to read them
A heatmap is an average of many sessions, so it needs a few reading rules.
- Separate mobile and desktop. The layout changes, and averaging the two confuses things.
- Click maps: look for frequent clicks on non-clickable elements such as images, icons or underlined text, and few clicks on the main call to action.
- Scroll maps: see at what depth the share of visitors drops below half and what sits below that line. Clarity also shows the average fold, meaning how much is visible before scrolling.
- Area maps: useful to add up clicks for a whole block, such as the entire menu or the cart summary.
Use periods without page changes: if the page changed halfway through, the heatmap blends two versions.
Recordings: what to look for
Watching random recordings wastes hours. Start from a question and use filters.
- Pick a page with a problem measured in GA4, for example many carts and few checkouts.
- Filter sessions that visited that page, by device, and where possible those with rage clicks or dead clicks.
- Watch 15-20 sessions and note in a table what happens: where the visitor stops, what they click, where they go back.
- Group your notes: behavior seen in many sessions is a candidate for a fix; something seen once is not.
Frustration signals
Clarity calculates metrics that help find useful sessions. The definitions from Microsoft's documentation:
- Rage clicks: repeated clicks in quick succession within a small area. Usually the visitor expects something to react.
- Dead clicks: a click that produces no visible response within a reasonable time. It can point to broken elements, slow requests or an interface that suggests an action that doesn't exist.
- Excessive scrolling: a session with more vertical scrolling than the expected average, often a sign the visitor can't find what they want.
- Quick backs: the visitor goes to a page and returns before the typical dwell-time threshold.
In carts, for instance, dead clicks on quantity buttons are a typical sign of scripts that don't update, one of the issues described in our article on the cart page.
From observations to changes
Clarity shows a symptom; the decision needs a method. For each problem write four lines: observation, hypothesis, change, metric. For example: "many taps on the product image on mobile", "visitors want to enlarge it", "add tap-to-zoom", "mobile add-to-carts on that page". Apply one change at a time and compare before and after in GA4; Clarity also lets you compare two heatmaps of the same page. How to structure the tracking that measures these changes is covered in our GA4 server-side tracking guide.
If you have a page with traffic and few conversions and want to find out where visitors get stuck, see our approach to a low conversion rate.
- microsoft clarity
- heatmap
- registrazioni sessioni
- consenso cookie
- privacy
- ux
- mascheramento dati
- conversioni
Frequently asked questions
Is Microsoft Clarity free?
Yes, Clarity is a free Microsoft tool. It offers click, scroll, area, attention and conversion heatmaps, session recordings and metrics such as rage clicks, dead clicks, excessive scrolling and quick backs. The documentation says heatmaps have no minimum traffic requirement.
Do I need consent to use Clarity?
Clarity is a third-party tool that records behavior on your site, and since 31 October 2025 Microsoft itself requires a consent signal for European visits. The cautious approach is to activate it only after consent to the statistics or analytics category. This is not legal advice: check your case with your privacy adviser.
Can Clarity record passwords or card details?
According to Microsoft, the content of input fields and dropdowns is masked in every mode and never sent. Page text can be visible in Relaxed mode, so for account, order and checkout pages use Strict mode or element-level masking.
Does Clarity replace GA4?
No. GA4 measures how many people do what and from which channel; Clarity shows how they move on the page. Use them together: GA4 points to the page with a conversion drop, Clarity helps you understand what happens on it.
Sources
- Heatmaps overview — Microsoft Learn
- Masking content — Microsoft Learn
- Consent Mode — Microsoft Learn
- Clarity Cookie Consent API - ConsentV2 — Microsoft Learn
- Semantic metrics — Microsoft Learn
- Linee guida cookie e altri strumenti di tracciamento - 10 giugno 2021 — Garante per la protezione dei dati personali
- Guidelines 2/2023 on Technical Scope of Art. 5(3) of ePrivacy Directive — European Data Protection Board
Related articles
Analytics & Tracking · 12 min read
Google Consent Mode v2 in GA4 and GTM: Practical Guide for Compliance and Data Recovery
Implement Google Consent Mode v2 in GA4 and GTM to support GDPR/DMA compliance, reduce data loss and keep Google Ads measurement reliable.
Analytics & Tracking · 6 min read
Google Tag Manager for small businesses: a beginner's guide to tags, triggers and variables
A beginner's guide to Google Tag Manager: tags, triggers and variables, container installation, the data layer, preview mode, naming conventions, versions and permissions.
E-commerce · 7 min read
Cart page optimization: 12 fixes to reduce drop-off before checkout
The cart is the least-tended step between product page and checkout. Twelve concrete fixes covering costs, discount codes, trust, express payments and technical bugs.
