DEV Community

Cover image for Analyze your WebApp using Microsoft Clarity
Kevin Toshihiro Uehara
Kevin Toshihiro Uehara

Posted on • Updated on

Analyze your WebApp using Microsoft Clarity

Hi people, it's nice do have you again!

Today I want to introduce you the Microsoft Clarity, an open source, free tool that captures how people use your site. Setup is easy and you'll start getting data in minutes.

The Microsoft Clarity contains some feature that are powerfull, such as HeatMap of your site, sessions capture records real time, insights and much more. And again, is totally FREE.

Image of home page of the microsoft clarity

Clarity offers some integrations with another tools, for example, Google Analytics.

You can create an account or sign up on Microsoft Clarity using your Google Account. After that you can create your project:

Image Creating your project on Clarity

So, if you have a Webapp created, just click to integrate manually in your app. Just add inside of your <head> the <script> that the Clarity will generate for you:

Image of script that Clarity will generate for you


Your app is integrated with Microsoft Clarity, and tracking all the users behaviour in your app.

For example, I have a Landing Page (created using Next 14) that I'm developing for an event FrontIn Campinas 2024 that I'm organising.


After the integration I can see some insights on main dashboard:

Image of dashboard of clarity

Image of dashboard of clarity where I can see the devices

Session Records

You can watch how people use your site. Explore what's working, learn what needs to be improved, and test out new ideas.

Gif Image of Session Record Example


Generate automatically for all your pages. See where people click, what they ignore, and how far they scroll.

heat map of clarity example

Amazing, right?

I strongly recommend using the Microsoft Clarity for analyses your users behaviours. It is very important to have clear if your app is usable and capture some product metrics. And also, again, is totally free and easy to integrate in your webapp or mobile projects.

Anoter option and it is similar with some feature of Clarity is Hotjar (I will show in another article). But I like of Clarity because of the real time session records and events.

And some tip: Even though you are Frontend or Backend Developer, is very important that you have some ideas how your app is being used. Collect metrics and track users' journeys, collect error and success metrics for your application. (Even if you have the product team!!!). Engineer, Design and Product Teams should work together to build a product usable, reliable and affordable.

I will write some artiles talking about some another tools to track some metrics on the frontend. Such as Sentry (Errors Monitoring Observability Tracking), Amplitude (Product Events Capture), Hotjar (Similar to Clarity).

I hope you liked!
Stay safe guys ❤️



That is all folks

Top comments (2)

rodriguesl3 profile image
Lucas Rodrigues

Great contribution Kevin, thanks for sharing. I didn't know about it, definitely I'll use it in my project.