Microsoft Clarity recordings and heatmaps

Insights counts visits; Microsoft Clarity records them, so you can watch how people use a page and see where they click and scroll. Insights loads Clarity on your website for you, only after the visitor agrees to analytics cookies, and links each page to its heatmap in Clarity. The recordings and heatmaps stay in your own Clarity account: Insights keeps none of them.

Set it up

  1. Create a free project for the website in Microsoft Clarity (clarity.microsoft.com). Use one project per website.
  2. In Insights, open Sites and apps. On the website's card, open Advertising and analytics tags, type the Microsoft Clarity project ID (in Clarity: Settings, Overview) and select Save tags. Remove Clarity's own code from the website, so it does not load twice.
  3. To see Clarity's figures in Insights too, open Microsoft Clarity export on the same card, paste an export token and select Save token. Make the token in Clarity under Settings, Data Export, Generate new API token; only the project's admin can. Insights keeps the token in a secure store and never shows it again.

Clarity loads only on a website that asks visitors for consent (the ASTRO cookie banner or the site's own tool). Before a visitor agrees to analytics, and after they say no, Clarity does not load; if they withdraw later, Clarity is told at once and its cookies are cleared.

From Insights to Clarity

  • On Pages, choose one website in the filter. The Microsoft Clarity panel opens the project's heatmaps, recordings and dashboard, and each page in the table has a Heatmap link.
  • Insights gives Clarity two labels for every recorded visit: astro_session (the visit) and astro_visitor (the visitor, the same anonymous ID Insights uses). In Clarity's recordings, open Filters, Custom tags, and choose one to find the visit you saw in Insights. Clarity can take up to two hours to list a new label.

Clarity's figures in Insights

With an export token, once a day Insights asks Clarity for the last 24 hours and shows them on Pages next to its own figures: sessions, the share of sessions with dead clicks (a click that did nothing), rage clicks (quick repeated clicks in one place), quick backs (a visitor who went to a page and came straight back) and the average scroll depth. Clarity's numbers count differently from Insights' own, so use them to compare, not to add up. If Clarity refuses the token, the card says so; make a new token in Clarity and save it again.

Keep visitors' typing private

  • Keep Clarity's masking on its default setting. By default Clarity hides what people type into forms, numbers and e-mail addresses, and never uploads them. Do not switch a form to unmasked.
  • Insights itself never sends form values to Clarity: only the visitor's consent, the two labels above and the names of your conversions.
  • Microsoft says Clarity should not be used on websites or apps meant for people under 18.

Related