GenClass is open source.Star on GitHub

Microsoft Clarity vs GenClass: what each one sees.

Microsoft Clarity is free and shows how visitors use your pages: session recordings, heatmaps, rage and dead clicks, and JavaScript errors. GenClass is an open-source browser library that watches your page's fetch, XHR, WebSocket and EventSource traffic and reports bugs that raise no error, such as a stale response written over newer data or a form sent twice. Keep Clarity to see what people do, and add GenClass when the data on screen is wrong and nothing threw.

The Clarity facts below link to Microsoft's own pages, checked on 5 December 2026.

What Microsoft Clarity records

Clarity is Microsoft's user behavior analytics tool for sites and apps. You add its tracking script or the npm package @microsoft/clarity, as Microsoft's setup page describes. Its page on the data Clarity collects lists what it records:

  • interaction events: clicks, scrolling, mouse moves, window resizes, selection and input;
  • diagnostic events: script and image errors, logs and performance events;
  • page events, such as the document's size and visibility, plus custom events your site sets;
  • playback data: the DOM and its changes, used to replay a session.

Network requests are not on that list. Playback data is kept 30 days; labeled or favorited sessions, click data and heatmap data are kept 9 months (data retention). Microsoft's FAQ calls Clarity a free service forever, with no traffic limits and no sampling, and says it records up to 100,000 sessions per project a day.

Rage clicks, dead clicks and errors, as Microsoft defines them

These definitions follow Microsoft's page on semantic metrics:

  • A rage click is one of several clicks in a clustered area in rapid succession. Clarity flags the page view or session.
  • A dead click gets no feedback in a reasonable time: the page looks the same and does not navigate. Microsoft says it can point to broken elements, high latency requests or misleading UX.
  • Excessive scrolling marks a session with more vertical scrolling than the expected average.
  • A quick back is a click away from a page and a return sooner than that page's dwell-time threshold.
  • JavaScript errors are counted, each with the recordings where it happened.
  • Click errors are JavaScript errors that follow a click; Clarity tags those sessions.

Microsoft Clarity next to GenClass

Microsoft Clarity and GenClass compared
QuestionMicrosoft ClarityGenClass
Made forHow people use a site or app: recordings, heatmaps and AI summaries. SourceBugs that raise no error, such as stale responses and double submits.
PriceFree, with no traffic limits or sampling. SourceOpen source (Apache-2.0). The hosted dashboard has a free plan and paid plans.
Recordings and heatmapsRecordings (playback data kept 30 days) and heatmaps (kept 9 months). SourceA beta, off by default: recordings of the page's structure, kept 30 days, and a heatmap of clicks, scroll depth and paint times (FCP and LCP).
Click and scroll signalsRage clicks, dead clicks, excessive scrolling and quick backs. SourceCounts of rage clicks (3 or more on one element within 1 second) and dead clicks (nothing changes within 1 second of a link or button click), when interaction analytics are on.
JavaScript errorsCounted, with recordings; sessions with click errors are tagged. SourceUncaught errors and unhandled rejections can trigger a model decision. Not an error tracker.
Network requestsNot in Microsoft's list of collected data. Sourcefetch, XHR, WebSocket and EventSource, watched inside the page.
A late response overwrites newer dataNot described. SourceCan be reported as stale, in app state GenClass can see.
A form is sent twiceNot described. SourceCan be reported as a duplicate: an identical request sent while the first was still in flight.
PlatformsWebsites, and mobile apps through SDKs for Android, iOS, Flutter, React Native and more. SourceWeb pages only, measured in Chromium.
AI and agentsCopilot summaries of recordings and heatmaps (source); an MCP server for querying Clarity data (source).An MCP server for coding agents that reorders responses on the development build.
Code and hostingTracking code MIT-licensed on GitHub; data stored in Microsoft's Azure cloud (source).Apache-2.0. On public hosts the runtime sends anonymous diagnostics without page text by default; telemetry: false turns them off. The collector can run on your own Cloudflare account.

"Not described" means only that the linked Microsoft page does not describe it.

Where Clarity is clearly better

  • It costs nothing at any traffic level. GenClass's libraries are free, but its hosted free plan limits apps and history.
  • Recordings and heatmaps are what it is built for. GenClass's are a beta, off by default, and record no visit from the EU, the EEA, the UK, Switzerland or Quebec.
  • It covers mobile apps. GenClass runs only in web pages.
  • Microsoft has setup guides for WordPress, Shopify, Wix, Google Tag Manager and other platforms. GenClass is added in your app's code, with an import or a script tag.
  • Copilot writes short takeaways from recordings and heatmaps.

Where GenClass differs: bugs that raise no error

Clarity records what the visitor saw and did. GenClass watches the requests behind the page and the order their responses arrive in, which is where some bugs start:

  • A visitor types "shoes", then "shoes red". The first answer arrives last and the list goes back to plain shoes. A recording would show the list change, with no JavaScript error to filter on. GenClass can report the late response as stale, naming both requests and the state it overwrites (how this race works).
  • The spinner on Pay hangs, the visitor taps again, and an identical request goes out while the first is in flight. Both succeed. GenClass can report the second one as a duplicate (ways to stop it).
  • Microsoft names high latency requests as one cause of a dead click, but Clarity's list of collected data has no network requests. GenClass's request-stalled check, on by default on development hosts, reports a fetch or XHR request still pending after 15 seconds (other causes of dead buttons).

A recording shows one order of responses. In development, GenClass's MCP server lets a coding agent rerun your steps with responses in seeded orders and replay an order that changes the final page, with a Playwright test that fails while the bug is there.

These reports are partial. Offline, on test data from real apps kept out of training, model 0.2.0 at its default setting reported 75% of duplicate submits and 30% of stale overwrites with the right diagnosis, with false detections held to at most 2% of clean decisions (benchmarks). On GenClass's six demo apps, request-stalled caught a planted 60-second hang in 11 of 18 runs, with 0 false reports in 120 runs (RESULTS.md, section 23). Both sets come from apps run in Chromium.

Using Clarity and GenClass together

Clarity shows where visitors struggle, and GenClass can sometimes name the request behind it. One way to combine them:

  1. In Clarity, find the control where dead clicks, rage clicks or click errors pile up, and watch a few of those recordings.
  2. Check GenClass's reports for that page, in the browser console during development or on the dashboard for the live site.
  3. If one names a stale response or a duplicate request, reproduce it on your development build with the MCP server, fix it, and replay the same order to check.

GenClass has published no test of a page that loads both, and it does not send its reports to Clarity. Microsoft's FAQ says the Clarity script is asynchronous and does not affect how quickly a page loads. GenClass adds about 108 KB of gzipped JavaScript (the 0.3.0-beta.0 build) and, on a first visit, about 13 MB for the model and its runtime, cached after that (one pilot app, 0.1.0-beta.3; RESULTS.md, sections 10 and 17).

Where GenClass fits

GenClass runs a small model on the visitor's device. In observe mode, the default, it reports and does not hold, delay or change requests or responses. Each stale or duplicate diagnosis prints one console line with its evidence. The measured checks request-stalled and click-blocked (an invisible layer that swallows clicks) run on development hosts by default, and on the live site if you turn them on. GenClass finds React state, and Redux and Zustand stores set up for devtools, on its own; other state must be registered.

It does not catch logic that is always wrong, and it does not replace Clarity's recordings. To try it, run npx genclass in your app's folder: it walks you through a free account and adds GenClass in observe mode.

Questions

Is Microsoft Clarity free?

Yes. Microsoft's FAQ calls it a free service forever with no traffic limits, and says it records up to 100,000 sessions per project a day.

What is a dead click in Microsoft Clarity?

A click on an element that gets no feedback in a reasonable time: the page does not change or navigate.

Does Microsoft Clarity record network requests?

Microsoft's list of the data Clarity collects does not include them. The list covers interactions, errors, logs, performance events, page data and the DOM.

How long does Microsoft Clarity keep recordings?

Playback data is kept 30 days. Sessions you label or favorite, click data and heatmap data are kept 9 months.

Does GenClass replace Microsoft Clarity?

No. Clarity shows how visitors use your pages, while GenClass reports bugs that raise no error, such as stale responses and double submits.

Related: GenClass and PostHog, frontend bug monitoring and the race condition simulator.

Microsoft Clarity is a trademark of its owner. GenClass is not affiliated with it.

Talk to sales

Tell us about your team and what you need. A person writes back, usually within a day.