Microsoft Clarity Guide: Heatmaps, Recordings, GA4 and Setup

Microsoft Clarity Guide: Heatmaps, Recordings, GA4 and Setup

analyticsNovember 30, 2026
By Antonio Fernandez

TL;DR

  • Microsoft's Clarity FAQ says the tool is free forever, with no traffic limits, no sampling and no credit card required.
  • Clarity keeps session recordings for 30 days; favourites and a random sample last up to 9 months, and heatmaps stay viewable for 9 months.
  • GTM installs work three ways: Clarity's Finish setup flow, the Microsoft Clarity - Official template, or a Custom HTML tag on All pages.
  • Clarity does not send playback URLs to GA4 and does not support GA4 segments; it pulls GA data into its own GA dashboard.
  • Balanced masking is the default; input boxes and dropdowns are masked in every mode, and consent can be passed with the consentv2 API.

Microsoft Clarity is Microsoft's website behaviour analytics tool. It shows where visitors click, scroll and get stuck through heatmaps, session recordings and signals such as rage clicks and dead clicks, and it costs nothing. Microsoft's Clarity FAQ describes it as free forever, with no traffic limits, no sampling of a portion of your traffic, and no credit card needed to sign up.

This guide covers what Clarity can show, how to install it with a direct tag or through Google Tag Manager, how the GA4 connection works, what each behaviour signal means, how to set up masking and consent, and how to use the data on ad landing pages. Every feature detail was checked against the Clarity documentation on Microsoft Learn on 30 November 2026. This is not legal advice; questions about consent and personal data belong with your legal or privacy team.

What is Microsoft Clarity and is it really free?

Microsoft describes Clarity as a user behaviour analytics tool that helps you understand how people interact with a website. Its core features are session recordings, heatmaps and insights that summarise behaviour automatically. The difference from a traffic analytics tool is the question it answers: not only how many people arrived and from where, but what those people did on the page.

On cost, the Clarity FAQ says the service is free forever, that you will never hit traffic limits or be pushed to a paid plan, that there is no limit on the number of sites per account, and that there is no sampling of a portion of your traffic.

Limits worth knowing before you start:

  • Clarity keeps recordings for 30 days from the time of recording. Favourite recordings and a randomly selected sample are kept for up to 9 months.
  • Heatmaps can be viewed for up to 9 months, and a single heatmap is built from up to 100,000 page views.
  • Clarity cannot capture what is inside canvas elements or third-party iframes.
  • The setup documentation says Clarity should not be used on websites or apps aimed at users under 18.

The first point changes how you work. If a recording is evidence for a page fix, mark it as a favourite before the 30 days run out.

What can you see in Clarity heatmaps and session recordings?

Five heatmap types

Microsoft's Heatmaps overview lists five types:

  • Click maps: show where users click and which elements get the most clicks. Clarity counts clicks by page element rather than raw mouse position, which keeps them accurate across screen sizes and responsive layouts. Click maps can be filtered to all clicks, dead clicks, rage clicks, error clicks, first clicks and last clicks.
  • Scroll maps: show the share of users who reach each section of the page, plus an average fold line marking how much of the page users see on average before they start scrolling.
  • Area maps: let you select an area of the page and see total clicks for every element inside it.
  • Conversion maps: for ecommerce sites, show which clicks lead to purchases.
  • Attention maps: show how much time users spend on each part of the page.

Microsoft says there is no minimum traffic needed to generate a heatmap and that user clicks appear on heatmaps within 30 minutes. Heatmaps work for a single page or a group of pages, and by default they are generated for PC, tablet and mobile so you can compare devices straight away. A heatmaps compare feature shows how a page change affected behaviour.

Session recordings

A recording replays one visitor's session from the first page to exit, including scrolling, clicks and pauses. Its value is context that a heatmap cannot give. A heatmap tells you a button gets few clicks; a recording can show whether users never saw the button or saw it and did not recognise it as a button.

Watching recordings one by one does not scale. Filter first, for example to sessions with rage clicks on the page you care about, or sessions that reached checkout and left, then watch only that set. Filters you use often can be saved as a segment.

How do you install Clarity on a website or through Google Tag Manager?

Direct installation

After creating a project in Clarity, go to Settings and then Setup. Microsoft's documentation lists three installation methods:

  1. Third-party platform: for example Shopify, Squarespace, Wix and WordPress. Select View all platforms and follow the steps for yours.
  2. Manual: select Get tracking code, copy it and paste it into the <head> section of the site. This needs access to the site's head section.
  3. NPM: for JavaScript projects, use the Clarity package on NPM and add the initialisation code from its documentation.

If the person setting up Clarity cannot edit the site, Share code emails the tracking code and instructions to a teammate. The same script can be used across multiple subdomains of one website.

Checking the install: Microsoft says data appears as soon as the code is added, so you can open the Dashboard or Recordings and look for live users. The other check is to right-click the page, choose Inspect, open the Network tab and look for POST requests to clarity.ms/collect while you use the page.

Three ways to install through Google Tag Manager

Clarity's GTM documentation gives three options:

  1. Microsoft's recommended method: in Clarity go to Settings, Setup, Google Tag Manager and select Finish setup. Sign in with Google, allow Clarity to publish through GTM, choose the account and container, then select Create and publish.
  2. Official template: in GTM create a New Tag, choose Discover more tags in the Community Template Library, search for Clarity and pick Microsoft Clarity - Official. Add it to the workspace, enter your Clarity project ID (visible in the project URL), set the trigger to All pages, then save and publish.
  3. Custom HTML: create a Custom HTML tag, paste the tracking code from Get tracking code, set the trigger to All pages and save.

One tag can be linked to only one Clarity project at a time, and with the recommended method Clarity updates the tracking code itself when it needs to change. A common mistake is pasting the code into the head and also installing it through GTM. Before adding a new method, check that no Clarity code is already on the site.

How do you connect Clarity to GA4, and how do the two tools differ?

Connection steps

Microsoft says Clarity setup must be finished first. Then:

  1. Choose the project, go to Settings, Setup and select Get Started under Google Analytics integration.
  2. Sign in with the Google account that has access to the property.
  3. Select the web property Clarity should pull data from and select Save.

A manual GA4 connection asks for the Account ID, the Measurement ID that starts with G- and the Property ID, all found in the GA4 Admin area. Each Clarity project can connect one web property. The Active toggle pauses the connection, and Disconnect means repeating the whole setup later.

Microsoft lists two GA4 limits: Clarity does not support GA4 segments, and it does not send the playback URL to GA4 because GA4 cannot accept rows with that many unique values. Anyone expecting recording links inside GA4 reports should know this first. The connection works in the direction of Clarity pulling Google Analytics data into the GA dashboard inside Clarity.

GA4 and Clarity answer different questions

GA4 answers quantitative questions: which channels users came from, which pages convert, how engaged sessions are. Clarity answers behavioural ones: why users do not click a button, which form field makes them stop, which content almost nobody scrolls to. The practical pairing is to use GA4 to find pages with a numbers problem, then Clarity to see what happens on those pages.

The two tools will not show matching numbers, because they count differently and Clarity removes bot traffic by default. Clarity figures should not replace GA4 as the main report.

What are rage clicks, dead clicks and quick backs?

Microsoft calls this group semantic metrics and defines them as follows:

  • Rage clicks: several clicks in rapid succession in the same area. Usually a sign of frustration, or that users expect the spot to be interactive.
  • Dead clicks: a click on an element that gets no feedback within a reasonable time. The visual state does not change and there is no navigation. Possible causes are broken elements, slow requests or misleading design.
  • Quick backs: a click that takes the user away from the page, followed by a return in less than a threshold time, meaning the destination was not what they wanted.
  • Excessive scrolling: sessions with more vertical scrolling than the expected average, which can mean users cannot find what they came for.
  • JavaScript errors and click errors: JavaScript errors in the browser, and errors that happen right after a user clicks. Clarity tags sessions with click errors automatically.

Illustrative example: a product page has a large image that looks zoomable but is not. A dead-click map shows a hot spot on the image, and recordings filtered to dead clicks show users tapping it repeatedly and then scrolling away. There are two fixes: make the image open a zoom view, or change the design so it no longer looks clickable.

Masking modes

Microsoft's Masking content documentation says Clarity masks sensitive content by default and that masked content is never uploaded to Clarity. The setting lives under Settings, Masking, with three modes:

  • Strict: all content is masked.
  • Balanced: the default. Only sensitive content is masked, which Microsoft defines as numbers and email addresses.
  • Relaxed: no content is masked, though input boxes and dropdowns still are.

Input boxes and dropdowns are masked in every mode and that cannot be changed. Beyond the site-wide mode, you can mask or unmask specific elements in two ways: list CSS selectors under Mask by element, or add data-clarity-mask="True" or data-clarity-unmask="true" to HTML elements. Both apply to the element and all its children, and the HTML attribute overrides the settings on the Clarity website.

Three cautions from the documentation: only project admins can change masking; changes can take up to an hour to apply and do not affect existing recordings; and Clarity does not mask content inside stylesheets or style tags, so sensitive data should never sit in CSS.

Microsoft says that from 31 October 2025 Clarity began enforcing consent signal requirements for visits from the European Economic Area, the United Kingdom and Switzerland, identified by IP-based location. What matters is where users come from, not where the site owner is based.

To stop Clarity setting cookies until consent is given, go to Settings, Setup and turn the Cookies toggle off. Then pass the consent status to Clarity through a supported consent management platform or through the current Consent API, consentv2, which takes ad_Storage and analytics_Storage as granted or denied.

The Consent API documentation describes what happens without consent: Clarity runs in no-consent mode, sets no cookies, and assigns a unique ID per page view, so recordings are not joined into multi-page sessions. If a user withdraws consent, calling clarity('consent', false) clears Clarity's cookies, and Microsoft states that the site owner is responsible for telling Clarity when consent changes.

Microsoft's own check is to clear cookies, visit the site, decline cookies, confirm /collect requests still fire, and confirm there is no _clck or _clsk cookie in the browser. Deciding which consent approach your site needs under the law that applies to it is a matter for your legal or privacy team.

How do you use Clarity data to improve ad landing pages?

Ad landing pages are where Clarity pays back most, because every click has a cost and one fix on the page helps every campaign sending traffic to it. A workable process:

  1. Isolate ad traffic: filter by URLs carrying your campaign parameters and save it as a segment, so heatmaps and recordings reflect paid visitors and not organic traffic.
  2. Open the scroll map first: check whether the main offer, price and contact button sit above the average fold on mobile. If the most important part sits where few users scroll, move it up.
  3. Check dead-click and rage-click maps: find elements users think are clickable but are not, or buttons that respond slowly.
  4. Watch recordings of sessions that leave a form: see which field users stop at. Field contents are always masked, but you can still see where users stall.
  5. Fix one thing at a time and compare: after a change, use heatmaps compare on the before and after periods, and check conversion rate in GA4 or Google Ads alongside it.

Clarity also offers smart events, which define key actions such as button clicks or form submissions without code, and funnels, which show the step where users drop out. Both cut the time spent hunting for the right recordings.

Comparison table: Clarity signals and what to check on a landing page

Comparison table: Clarity signals and what to check on a landing page
Clarity signalMeaning in Microsoft's definitionWhat to check on the page
Rage clickRapid repeated clicks in one areaButtons or images that look clickable, and response speed
Dead clickA click with no responseBroken links, non-clickable elements or slow requests
Quick backLeaving and returning faster than the thresholdLinks that go to the wrong place, or link text that does not match the destination
Excessive scrollingMore vertical scrolling than averageContent order and the position of the main offer

Clarity for websites in Thailand

If most of your traffic comes from phones, open the mobile heatmap first; Clarity generates it separately by default. Fold position and tapping behaviour on mobile differ from desktop. Floating chat buttons such as LINE, or cookie banners covering content, are worth checking first in mobile recordings.

On masking, if your forms ask for phone numbers and email addresses, Balanced mode treats numbers and email addresses as sensitive, and input fields are always masked anyway. But personal data shown as text on a page, such as a name on an account page, may not be masked in Balanced mode if it is not a number or an email. Those pages should use data-clarity-mask or Strict mode.

If the site also gets users from the EEA, the UK or Switzerland, Clarity's consent requirements apply to those users even though the site is based in Thailand, because Microsoft says the user's location decides it, not the site owner's.

Frequently asked questions about Microsoft Clarity

Does Microsoft Clarity cost anything?

No, Microsoft says Clarity is free forever, with no traffic limits, no sampling and no credit card needed to sign up.

How long does Clarity keep recordings?

Clarity keeps recordings for 30 days from the time of recording. Favourite recordings and a randomly selected sample are kept for up to 9 months.

Can you install Clarity through Google Tag Manager?

Yes, Microsoft documents three ways: connecting from the Clarity Setup page, using the official Microsoft Clarity - Official template in GTM, or pasting the code into a Custom HTML tag with an All pages trigger.

No, Microsoft says Clarity does not send the playback URL to GA4 and does not yet support GA4 segments. The connection works by Clarity pulling Google Analytics data into its own GA dashboard.

Can Clarity see what users type into forms?

No, input boxes and dropdowns are masked in every mode and this cannot be changed, and masked content is never uploaded to Clarity.

Clarity gives you behavioural data, but turning it into page changes you can measure takes both analytics and design work. To set up measurement so GA4 and Clarity work together, see our Google Analytics 4 setup and migration service. To apply behaviour data to an online store, see our ecommerce customer experience optimisation. To redesign the pages that receive ad traffic, see our landing page design service, or ask our Google Ads team to review the campaigns and their destination pages together.

Antonio Fernandez

Antonio Fernandez

Founder and CEO of Relevant Audience. With over 15 years of experience in digital marketing strategy, he leads teams across southeast Asia in delivering exceptional results for clients through performance-focused digital solutions.

Share to:
Copy link:

Read us often? Add Relevant Audience as a preferred source so our articles surface more in your Google results.