Home / Articles

Article

Microsoft Clarity setup: heatmaps, recordings, masking

By Nick Quick, with the Be In GEO lab Published: Nov 30, 2026 Last checked: Nov 12, 2026

Be In GEO article card: "Microsoft Clarity setup: heatmaps, recordings, masking", with a bar chart with one teal bar standing out.

Short answer

Microsoft Clarity is a free tool that shows how people actually use your pages, through heatmaps and session recordings. (Microsoft Learn) You install one tracking code, data starts showing as soon as it’s added, and by default Clarity masks sensitive content. (Microsoft Learn)

Analytics tells you how many people came from where. Clarity tells you what they did once they got there, which is often the more useful half for a content page.

Before you install

Note

Note: Microsoft says Clarity shouldn’t be used on any websites or apps targeting users under the age of 18. (Microsoft Learn) If that’s your audience, stop here.

Clarity says it’s 100% free, with no credit card needed to sign up. (Microsoft Learn)

Watch out

Watch out: for visitors in the EEA, UK and Switzerland, Microsoft says you need to pass each visitor’s consent status to Clarity, using its client API. (Microsoft Learn) Without consent, Clarity cookies can’t be used, which reduces what it can show. (Microsoft Learn)

Install the tracking code

Each site you add gets its own tracking code. (Microsoft Learn) There are three ways to install it: a third-party platform, manually, or with NPM. (Microsoft Learn)

  1. In Clarity, pick your project and go to Settings, then Setup. (Microsoft Learn)
  2. If you use a platform like Shopify, Squarespace, Wix or WordPress, choose it from the supported list and follow its steps. (Microsoft Learn)
  3. To install manually, select Get tracking code and paste it into the head section of your site. (Microsoft Learn)
  4. Check it works. Clarity shows real time data with the number of live users once the code is in. (Microsoft Learn) You can also look for POST requests to clarity.ms/collect in your browser’s Network tab. (Microsoft Learn)

Our read: if you already use Google Tag Manager, Clarity has an integration for it, along with one for Google Analytics. (Microsoft Learn)

Heatmaps: where people click and how far they scroll

Clarity tracks clicks and scrolls on mobile, desktop and tablet and builds heatmaps automatically. (Microsoft Learn) There’s no minimum traffic needed to generate one. (Microsoft Learn) Heat maps can cover a single page or a group of pages. (Microsoft Learn)

Map typeWhat it shows
Click mapsWhere people click and the most clicked elements (Microsoft Learn)
Scroll mapsHow far people scrolled down the page (Microsoft Learn)
Area mapsSupported alongside the others (Microsoft Learn)
Conversion mapsThe clicks that generate the most revenue (Microsoft Learn)
Attention mapsSupported alongside the others (Microsoft Learn)

Microsoft suggests using scroll maps to check the order of elements on a page and click maps to see whether your calls to action get attention. (Microsoft Learn) Each heat map is limited to up to 100,000 page views. (Microsoft Learn)

Our read: for an article, the scroll map answers the blunt question. If most readers never reach your worksheet box, move it up.

Recordings: watch real visits

Recordings aren’t video. They’re step-by-step visual reconstructions built from the page HTML and what the visitor did. (Microsoft Learn) Clarity keeps capturing until the visitor has been inactive for 30 minutes, then ends the session. (Microsoft Learn)

Each session card shows details such as entry and exit pages, referral URL, number of clicks and device type. (Microsoft Learn) You can filter recordings and save filter combinations as segments. (Microsoft Learn) (Microsoft Learn)

Some useful limits:

ItemLimit
Sessions recordedUp to 100,000 per project per day (Microsoft Learn)
Recording retention30 days (Microsoft Learn)
Favorite recordingsKept up to 9 months (Microsoft Learn)
Deleting or downloading single recordingsNot currently possible (Microsoft Learn)

Watch out

Watch out: after 30 days, Clarity keeps only 1% of recordings or 10 per day, whichever is higher. (Microsoft Learn) If you find a recording you want to keep, favorite it.

Masking: keep private details out

Clarity masks sensitive content by default and never captures anything that is masked. (Microsoft Learn) Content in input boxes is masked in all modes and can’t be changed, and so are drop-down menus. (Microsoft Learn)

There are three masking modes, set under Settings, then Masking. The default is Balanced. (Microsoft Learn)

ModeWhat gets masked
StrictAll content (Microsoft Learn)
BalancedOnly sensitive content, such as numbers and email addresses (Microsoft Learn)
RelaxedNo content, though input boxes and drop-downs stay masked (Microsoft Learn)

You can also mask specific elements with CSS selectors, or add the data-clarity-mask attribute in your HTML. (Microsoft Learn) Masking changes apply to new recordings, can take up to an hour, and can’t be applied retroactively. (Microsoft Learn)

Note

Note: Clarity doesn’t mask content inside style sheets, so don’t put sensitive content in CSS. (Microsoft Learn) To keep a page out of recordings entirely, remove the tracking code from it. (Microsoft Learn)

Key takeaway

What to do next

  1. Confirm your audience isn’t under 18. (Microsoft Learn)
  2. Install the code through your platform or in the head section. (Microsoft Learn)
  3. Check the live users counter. (Microsoft Learn)
  4. After a week, open the scroll map for your top article. (Microsoft Learn)
  5. Leave masking on Balanced or switch to Strict if visitors type personal details. (Microsoft Learn)
  6. Block your own IP so your visits don’t skew the maps. (Microsoft Learn)

Get the worksheet

Want to see which sites AI answers cite for the questions your customers ask? Grab the free worksheet at beingeo.com/checklist. You’ll also get short emails with each new teardown.

Read how Be In GEO works for how we source and check our pages.

FAQ

Does Clarity slow a page down?

Microsoft says the Clarity script is asynchronous and doesn’t impede your site’s performance, and suggests contacting Clarity support if you see a significant drop. (Microsoft Learn) Our read: check your own Core Web Vitals before and after installing.

Are all sessions recorded?

Clarity tracks all sessions, but recordings might not be available for every one. (Microsoft Learn)

Sources