Website Heatmaps: What They Are and How to Read Them
A website heatmap is a picture of your page with color laid over it to show where visitors clicked, how far they scrolled or where they spent time. Warm colors mean many visitors, cool colors mean few. A small script on the page records interactions, and the tool adds them up across many visits.
| Type | What it shows | Question it answers |
|---|---|---|
| Click map | Where people clicked or tapped | Is anyone pressing my main button? |
| Scroll map | The share of visitors who reached each depth of the page | Do people ever see my prices? |
| Area map | Total clicks inside an area you select | How much does the whole menu get used? |
| Attention map | Time spent on each part of the page | Which section holds people? |
| Move map | Where the mouse pointer went, offered by some tools | What are desktop visitors drawn to? |
Updated
Analytics tells you how many people visited a page. A heatmap shows what they did once they were there. For a small business site that often explains the puzzle in one glance: the button nobody clicks, the photo everyone taps expecting a link, the offer sitting below where most visitors stop scrolling. Try the demo to see how one gets built.
Make a heatmap from your own clicks
Click or tap anywhere on the sample page below. Each click adds heat. Nothing is sent anywhere: the clicks stay in this browser tab.
Code you may need
Two short snippets for sites using Clarity. Both follow Microsoft's published API; the values here are examples.
Hide one part of a page from recordings
Adding data-clarity-mask with the value True masks that element and everything inside it, whatever the site-wide setting.
<section data-clarity-mask="True">
<h2>Your account</h2>
<p>Order history and saved addresses</p>
</section>Tell Clarity the visitor said yes
Call this from your cookie banner after the visitor accepts. If they decline, Clarity runs without cookies, so no call is needed.
window.clarity('consentv2', {
ad_Storage: "granted",
analytics_Storage: "granted"
});How the demo draws heat
Each click becomes a soft circle from createRadialGradient. Overlapping circles stack, so busy spots turn darker.
function drawHeat(ctx, clicks, radius = 40) {
ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);
for (const { x, y } of clicks) {
const g = ctx.createRadialGradient(x, y, 0, x, y, radius);
g.addColorStop(0, "rgba(220, 38, 38, 0.45)");
g.addColorStop(1, "rgba(220, 38, 38, 0)");
ctx.fillStyle = g;
ctx.fillRect(x - radius, y - radius, radius * 2, radius * 2);
}
}
How the data is collected
A script on your page listens for clicks, taps and scrolling and sends small records to the tool: which element was pressed, the page width, how far down the visitor got. The tool then groups the records by page and device and colors the page.
Better tools tie clicks to page elements rather than raw screen positions. Clarity's documentation says its click maps use elements rather than absolute mouse position, so maps stay accurate across screen sizes and responsive layouts.
Privacy settings to choose on day one
Decide how much page text the tool may store. Clarity offers Strict, which masks all content, Balanced, which masks sensitive content like numbers and email addresses, and Relaxed, which masks only form fields and drop-downs.
You can also mark single parts of a page as private. In Clarity that is the data-clarity-mask attribute, shown in the code below. Clarity also says it should not be used on sites aimed at users under 18.
How it works
- Pick a heatmap tool and create a project for your site.
- Add the tool's tracking script to every page, or install its plugin for your site builder.
- Set up consent if you have visitors from regions that require it, and choose how much on-page text the tool may record.
- Wait for a few hundred visits to the page you care about before drawing conclusions.
- Open the heatmap for that page, check mobile and desktop separately, and write down one change to test.
Tips
- Look at phones and computers apart. The same page lays out differently, so mixed maps blur together.
- Clicks on things that are not links, such as photos or bold text, mean people expect them to do something.
- If most visitors stop scrolling before your call to action, move it up rather than making it bigger.
- Rage clicks, where someone taps the same spot again and again, often point to a broken or slow element.
- Treat a heatmap as a source of ideas, then confirm the change with an A/B test or conversion data.
Frequently asked questions
Are there free heatmap tools?
Yes. Microsoft's documentation describes Clarity as a free service forever, with click, scroll, area, conversion and attention maps plus session recordings. Other tools such as Hotjar also offer heatmaps; check their current plans on their own sites.
How many visitors do I need for a useful heatmap?
There is no official number. Some tools draw a map from very little traffic, but a handful of visits mostly shows individual habits. Wait until the pattern stops changing as more visits arrive before you redesign anything.
Do heatmaps need cookie consent?
It depends on the tool and the law where your visitors are. Clarity, for example, began enforcing consent signals for visits from the EEA, the UK and Switzerland on October 31, 2025. This is not legal advice; check the rules that apply to you.
Do heatmap tools record what people type?
Good tools hide it. Clarity's documentation says content in input boxes and drop-downs is masked in every mode, and its default Balanced mode also masks numbers and email addresses.
What is the difference between a heatmap and a session recording?
A heatmap adds up many visits into one picture of a page. A session recording replays one visitor's journey across pages. Heatmaps show patterns; recordings help explain a single odd one.
Related: A/B test calculator, How to run an A/B test, Google Ads landing page experience, Facebook UTM parameters.
Build your site free or see all free tools. On We.Inc you can build your site free, with no card and no trial needed to start. AI building is on paid plans from $20 a month.
More in Guides
- Website Hero Section Examples for Small Businesses (Annotated) | How-to Guide
- Website Hosting Migration Without Downtime
- 120 Website Ideas, With the Pages Each One Needs
- Website Image Sizes: The Complete Table
- Website Launch Checklist: 31 Checks Before and After Go-Live | How-to Guide
- 25 Website Layout Examples (With Annotated Wireframes) | How-to Guide
- Website Maintenance Packages: How to Scope, Price and Quote Them | How-to Guide
- Website Navigation Examples for Small Businesses (Annotated) | How-to Guide
Product
Who It's For
- For Agencies
- For Freelancers
- For Hosting Providers
- For SaaS Platforms
- For Startups
- For Financial Services
- For Healthcare
Features
Resources
- Blog
- Help Center
- Free Business Tools
- Free UI Components
- Website Templates
- Template Collections
- Website Examples
- Guides
- Comparisons
- Alternatives
- Best Lists
- Reviews
- Pricing Guides
- Use Cases
- Glossary & Guides
- Integrations
- Developers
- Benchmark
- Windows App