Comparison · Measuring a website
Google Analytics counts visits and Clarity replays them; choose by what you need to see
They answer different questions, and both are free. Google Analytics tells you how many people came, where from, and how many did the thing you care about, such as sending an enquiry. Microsoft Clarity shows how people used a page: recordings of visits and heatmaps of where they clicked and scrolled. Most small sites are best served by Analytics first, Clarity added when a page underperforms, and a privacy notice that names both.

On this page
Google Analytics
Every site that needs to know how many came, from where, and how many enquired or bought
Microsoft Clarity
A site with a page that gets visits but no action, where the owner needs to watch what goes wrong
What each tool shows a small-site owner, and what each asks in return
On this page
Two tools, two different jobs
Google Analytics is a counting tool. Once its tag is on your site 1, it records page views, scrolls, clicks on links that leave your site, site searches, file downloads and form interactions without extra setup, through what Google calls enhanced measurement 2. You then mark the actions that matter to the business, such as an enquiry form sent or a call button pressed, as key events, and Analytics shows how many people did them and which channels brought those people 3. It answers "is the site bringing work, and from where?"
Microsoft Clarity is a watching tool. Microsoft describes it as a user behaviour tool with session recordings, heatmaps and automated insights 6. A recording replays one visit: the scrolling, the hesitation, the tap on something that is not a link. A heatmap shows where many visitors clicked and how far they scrolled. It answers "what goes wrong on this page?"
So the question is rarely which one. It is which question you are stuck on today.
Both are free; they differ in what they keep and for how long
Google's terms for Analytics say the service is provided without charge for its current properties, though Google may change its fees 5. Microsoft says Clarity is free for good, with no traffic limits and no sampling, meaning it does not track only a portion of visits 6.
What they keep differs. Clarity keeps data for you to view for up to 30 days from the time of recording, and to delete one person's data you have to delete the whole project 6. Analytics lets you set how long user-level and event-level data is kept, at two or fourteen months on the standard version; that setting affects explorations and funnel reports, not the standard aggregated reports 4. For a small business that wants to compare this festival season with last year's, Analytics' reports will still be there; Clarity's recordings will not.
| Google Analytics | Microsoft Clarity | |
|---|---|---|
| Price | No charge for current properties | Free, no traffic limits |
| Detailed data kept | Two or fourteen months, your choice | Up to 30 days from recording |
| Summary reports | Not affected by the retention setting | No separate long-term reports documented |
| Deleting one visitor's data | Not covered in the pages read | Only by deleting the whole project |
Recordings see what visitors type, unless you check the masking
A tool that replays visits can capture more than an owner expects. Gunes Acar, Steven Englehardt and Arvind Narayanan measured third-party scripts on hundreds of thousands of web pages and examined six session-recording services in depth. They found that text typed into forms was collected before the visitor pressed send, and that redaction depended on site owners checking every page that showed or took personal details. On top sites using these services they observed passwords, medical information, student data and card details ending up in recordings 8. Clarity was not among the services they tested, and the work was done some years ago, so read it as the reason to check, not as a finding about Clarity.
Microsoft's documentation describes Clarity's defences. Content in input boxes is masked in every mode and cannot be unmasked; the default mode, Balanced, also masks numbers and email addresses shown on the page; Strict masks all text; Relaxed masks none except inputs and dropdowns 7. Masked content is not sent to Microsoft 6. Google's side has its own rule: its terms forbid sending Analytics anything Google could recognise as personally identifiable information, and its help says you must make sure none is collected 5,2.
What India's data protection law asks of a site that measures visitors
India's Digital Personal Data Protection Act, 2023 covers personal data in digital form, and defines personal data as any data about an individual who is identifiable by or in relation to that data 9. Where a business processes such data on the basis of consent, the request for consent must come with or after a notice saying what data is taken and why; the consent must be free, specific, informed, unconditional and unambiguous, given by a clear affirmative action; and it must be as easy to withdraw as it was to give 9. The Act's other grounds, its legitimate uses, are narrow and listed, such as data a person handed over voluntarily for a purpose they asked for 9.
The Act does not mention cookies or analytics by name. Whether a visitor's analytics identifier is personal data under it turns on whether it identifies a person, and the Act leaves the detail of notices to rules made by the central government; the Act itself comes into force on dates the government notifies 9. Our view, which is not legal advice: a site that records visits, and above all one that replays them, should assume the law can reach it, name both tools in a plain privacy notice, and ask before recording where its visitors include people abroad.
Before either tag goes live
- A privacy notice that names Google Analytics and Microsoft Clarity, what each collects and why 5,6,9.
- A link to Google's page on how it uses data from sites that use its services, which its terms suggest 5.
- A way for visitors to agree or refuse, at least for visitors from Europe, the UK and Switzerland, where Clarity enforces consent 6.
- Clarity's masking mode chosen on purpose, and sensitive pages checked in a recording 7.
- No names, phone numbers or emails sent into Analytics in page addresses or event names 2,5.
Which to install first, and when to add the other
The two also work together: Clarity can be linked to an Analytics property once its own tracking code is installed 6. Our guide to adding analytics to a small site walks through putting the Analytics tag in place.
Questions people ask
Is Microsoft Clarity really free?
Microsoft says Clarity is free for good, with no traffic limits and no paid version you are pushed into 6.
Does Google Analytics cost anything for a small site?
Google's terms say Analytics is provided without charge for its current properties, and that Google may change its fees 5.
Can Clarity see what visitors type into my forms?
Do I need a cookie banner in India?
India's Act asks for notice and clear, freely given consent where processing rests on consent, but does not name cookies 9. Both tools' terms ask you to tell visitors about cookies, and Clarity enforces consent for visitors from Europe, the UK and Switzerland 5,6. A plain notice is the minimum; take legal advice for anything sensitive.
Will Clarity slow my site down?
Microsoft says Clarity does not impede a site's performance 6. That is the vendor's own statement; check your page speed before and after adding any tag.
Sources
Every figure on this page, with where it came from.
- 1
Google Analytics Help, Set up Analytics for a website and/or app.
Supports: an Analytics account, a property, a data stream and the Google tag on the site - 2
Google Analytics Help, Enhanced measurement events.
Supports: page views, scrolls, outbound clicks, site search, downloads, form interactions measured automatically; you must ensure no personally identifiable information is collected - 3
Google Analytics Help, About key events.
Supports: a key event measures an action important to the business; any event can be marked; see how many users do it and which channels lead to it - 4
Google Analytics Help, Data retention.
Supports: user-level and event-level data kept 2 or 14 months on standard properties; setting does not affect standard aggregated reports, only explorations and funnel reports - 5
Google, Google Analytics Terms of Service.
Supports: service without charge for GA4 properties, fees may change; no personally identifiable information to be passed to Google; privacy policy giving notice of cookies and disclosing Analytics; consent to cookies where required by law; link to Google's partner-sites page - 6
Microsoft Learn, Microsoft Clarity: Frequently asked questions.
Supports: recordings, heatmaps, insights; free for good, no traffic limits, no sampling; data available up to 30 days; delete a user's data only by deleting the project; users must be informed of the cookie; explicit consent enforced for the EEA, UK and Switzerland; masked data not uploaded; Google Analytics integration; vendor says no performance impact - 7
Microsoft Learn, Clarity masking.
Supports: input boxes masked in all modes; Balanced default masks numbers and email addresses; Strict masks all content; Relaxed masks none except inputs and dropdowns - 8
Gunes Acar, Steven Englehardt and Arvind Narayanan, Proceedings on Privacy Enhancing Technologies, No boundaries: data exfiltration by third parties embedded on web pages (2020).
Supports: six session replay services examined; typed form text collected before submission; redaction relies on publishers checking every page; passwords, medical information, student data and card data found in recordings on top sites - 9
Ministry of Electronics and Information Technology, Government of India, The Digital Personal Data Protection Act, 2023.
Supports: personal data defined as data about an identifiable individual; notice with or before a consent request (section 5); consent free, specific, informed, unconditional, unambiguous, by clear affirmative action, withdrawable as easily (section 6); listed legitimate uses (section 7); manner of notice set by rules; commencement by notification
Read next
Want enquiries counted properly before you spend more on getting visitors? Tracking and reporting sets up the counts and reads them with you.
