Fortunitus Check your tracking

Microsoft Clarity: how to set it up and what to look at

Microsoft Clarity records how people use your site: where they click, how far they scroll and where they get stuck. It is free with no traffic limits. Since October 31, 2025 it also needs a consent signal for visitors from the EU, UK and Switzerland, which many setups still miss.

Short answer: Microsoft Clarity is a free tool that shows session recordings and heatmaps of your website. Sign up at clarity.microsoft.com, add a project, paste the tracking code in the <head> (or install it with Google Tag Manager or a plugin), and data appears within a few hours. If you have visitors from the EU, UK or Switzerland, pass their cookie consent to Clarity, otherwise recordings break into one-page sessions.

What is Microsoft Clarity?

Clarity is a behaviour analytics tool. GA4 tells you that 1,000 people visited the pricing page and 12 sent the form. Clarity shows you what the other 988 did there: whether they scrolled to the price, clicked a picture that is not a link, or tapped the same button five times because nothing happened.

Microsoft says the service is free "forever", has no traffic limits and does not sample, so every session is recorded. Recordings stay available for 30 days. The tracking script loads asynchronously, so it should not slow the page down. Clarity must not be used on sites aimed at people under 18.

Comparison of GA4 and Clarity: GA4 answers how many came and converted, Clarity shows what people did on the page; GA4 keeps 2 to 14 months of event data, Clarity 30 days of recordings; both free, both need consent in the EU.

You need both. Use GA4 for counting and attribution, and Clarity for finding out why a page does not convert.

How do you set up Microsoft Clarity?

Four steps to set up Clarity: sign up, add a project, install the code, connect GA4 and consent.
  1. Go to clarity.microsoft.com and sign up with a Microsoft, Google or Facebook account.
  2. Create a project: name, website URL and category. Use one project per domain. Subdomains can share a project if the same code is on each of them.
  3. Install the code. The setup screen offers three routes: copy the script into the <head> of every page, install it through Google Tag Manager, or use a platform integration such as the official WordPress plugin or the Shopify app.
  4. Wait a few hours. Live users show up almost at once; dashboard numbers take longer.

If you use Google Tag Manager, add Clarity as a tag that fires on all pages, like any other analytics tag. Then check it with GTM Preview or Tag Assistant: you should see requests to clarity.ms. Our website tracking checker also shows whether Clarity loads on a page.

What the Clarity dashboard shows

The screenshots come from Clarity's public demo project, which tracks Microsoft's own Clarity website, so the numbers are real but not ours.

Clarity dashboard: sessions 12,166, pages per session 1.12, scroll depth 15.96%, active time 33 seconds, unique users 11,434, dead clicks 10.20%.
Clarity demo project, November 2026. 1: sessions, with bot sessions already excluded. 2: average scroll depth. 3: unique users. 4: dead clicks, the share of sessions with clicks that did nothing.

Four numbers are worth reading every week:

  • Dead clicks: clicks on something that looks clickable but is not. On the demo site 10.2% of sessions have them. On a small business site this is often a photo, an icon or a price box that people expect to open.
  • Rage clicks: several fast clicks in the same spot. Usually a broken button, a slow form or a menu that does not open on a phone.
  • Quick backs: someone opens a page and returns almost at once. The link promised something the page did not give.
  • Scroll depth: how far down people get on average. Compare it with where your price or form sits.

Clarity counts a unique user per browser and device through a first-party cookie, so one person on a phone and a laptop counts as two. That is one reason Clarity and GA4 user numbers never match.

How to read Clarity heatmaps

Open Heatmaps, pick a popular page or type a URL, and choose the device. The Click view ranks the elements by clicks (1) and paints them on the page (2).

Clarity click heatmap of the Clarity home page with a ranked list of the most clicked elements on the left and hot spots on the buttons.
1: elements ranked by clicks, here the sign-in buttons take almost half. 2: a hot spot on the main call to action.

The Scroll view is the one we open first on landing pages. It shows what share of visitors reached each part of the page (1) and draws lines for 75%, 50% and 25% (2).

Clarity scroll heatmap: table of scroll percentages with visitors and drop-off, and the page coloured from red at the top to blue lower down with 75, 50 and 25 percent lines.
1: how many visitors reached each depth. 2: the 50% line. On this page half the visitors never pass the first screen.

A practical rule: if fewer than half the visitors reach your form or price, move it up or add a button to it near the top. On phones the drop is usually steeper, so check the mobile view separately.

How to use session recordings

Watching random recordings wastes time. Filter first: one page, mobile only, and sessions with rage clicks or quick backs. Each card shows the entry page, duration, clicks and device (1); the player has a timeline with markers for clicks and page changes (2).

Clarity recordings: list of sessions with entry page, duration, clicks, country, browser and device, and a player replaying a visit to the Clarity home page.
1: a recording card, here a 3-second visit from Google. 2: the player timeline.

By default Clarity masks text that may be sensitive: all input fields, numbers and email addresses. Masked content is not uploaded at all. If you show personal data on pages (an account area, an order summary), keep the strict masking mode or add data-clarity-mask="true" to those elements.

How to connect Clarity to GA4

In the Clarity project open Settings → Setup and use the Google Analytics integration. Clarity creates a session-scoped custom dimension called Clarity Playback URL in your GA4 property. You can then open the recording of a GA4 session straight from a GA4 exploration. If GA4 refuses because the property already has too many custom dimensions, create that dimension yourself with the same name and scope.

This changed in 2025 and many sites still have the old setup. Since October 31, 2025 Clarity enforces a consent signal for visits from the European Economic Area, the UK and Switzerland. Without it, Clarity works in a no-cookie mode: every page view becomes its own session, so recordings and funnels stop showing whole visits.

You have two ways to send the signal:

  • A consent platform that integrates with Clarity. Microsoft names CookieYes as the supported one and says more are coming.
  • The Consent API, called from your banner when the visitor decides:
window.clarity('consentv2', {
  ad_Storage: "granted",
  analytics_Storage: "granted"
});

To check it, open the browser console and run the function from Microsoft's documentation:

clarity('metadata', (d, upgrade, consent) => {
  console.log('consentStatus:', consent);
}, false, true, true);

Before the visitor accepts, it should print DENIED for both values and the cookies _clck and _clsk should not exist. After accepting, both should turn GRANTED. Microsoft's FAQ says support for Google Consent Mode is coming, so do not count on your GA4 consent setup covering Clarity yet.

What is Clarity AI Visibility?

A newer tab in the dashboard shows how often AI assistants cite your site: citations, your share of all citations and sessions that came from AI answers. Microsoft lists Copilot and partners as the data source. In the demo this section uses made-up data for a fictional shop, as the banner says, so treat the screenshot as a tour of the screen, not as a benchmark.

Clarity AI Visibility tab with total citations, share of authority, AI referral traffic and a list of grounding queries.
1: citations across AI answers. 2: sessions referred by AI assistants. 3: queries where the site was cited. Synthetic demo data.

Clarity vs Hotjar

Both record sessions and draw heatmaps. Hotjar adds surveys and feedback widgets and its free plan limits how many sessions it captures, while Clarity records everything for free but has no surveys. For a small business site Clarity is enough. Pick Hotjar when you need on-page surveys and are ready to pay for volume.

Common problems

SymptomLikely causeFix
Every visit has only one pageNo consent signal for EU, UK or Swiss visitorsSend consentv2 from the banner or use a supported consent platform
No data after a dayCode missing on the live site, or blocked until consentCheck the page source or the tracking checker; accept cookies and look for clarity.ms requests
Clarity and GA4 users differ a lotDifferent counting: Clarity counts browsers and devices, GA4 shows active usersCompare trends, not totals
Data from another site in the projectThe same project code copied to a second domainCreate one project per domain
Shopify data stoppedA theme change removed the scriptReinstall or update the Shopify app after theme changes

Frequently asked questions

Is Microsoft Clarity really free?

Yes. Microsoft says Clarity is free forever, with no traffic limits and no paid tier to upgrade to. You can add unlimited projects and team members.

How long does Clarity keep recordings?

Recordings and session data are available for 30 days from the time they were recorded. Save the important ones as favourites or note what you found before they expire.

Does Microsoft Clarity slow down a website?

Microsoft says no: the script loads asynchronously and does not affect how quickly the page loads. Heatmaps use the same data, so they add no extra load.

Does Clarity need cookie consent?

Yes for visitors from the EEA, UK and Switzerland. Since October 31, 2025 Clarity needs a consent signal from these visitors, sent through the Consent API or a supported consent platform. Without it Clarity runs without cookies and every page view becomes a separate session.

Can I use Clarity together with GA4?

Yes. Install both, then connect them in Clarity under Settings, Setup. Clarity adds a Clarity Playback URL custom dimension to GA4 so you can open recordings of GA4 sessions.

Check your own setup in 20 seconds

Run any website through the free tracking checker: GA4, Google Tag Manager, Google Ads, Meta Pixel, cookie banner and what sits inside the GTM container.