A heatmap is a visualization that overlays user clicks, mouse movement, taps, attention or scroll depth on a screenshot of a web page or an app screen. Colors show intensity: the hottest areas, usually red or orange, receive the most interaction, while the coldest areas, usually blue or transparent, receive little or none. It is a descriptive analysis tool that helps teams understand how people actually behave before deciding what to change.

How it works

A heatmap is built from a tracking script that records the position of every click, mouse movement, tap or scroll event on a page. The tool then aggregates those events across many sessions and places them over a capture of the page, assigning colors according to the density of interaction in each area.

There are several types. The click map shows where people press, including clicks on elements that are not links, which is useful for spotting frustrated expectations. The mouse movement map is often used as a rough proxy for attention, although it does not equal real eye tracking. The scroll map shows what percentage of visitors reach each section of the page.

Two technical points matter. First, a heatmap aggregates data, so it needs a sufficient volume of sessions to be representative; a map built from a handful of visits mostly reflects chance. Second, if the layout differs between desktop and mobile, separate maps should be generated for each device, because interaction zones can shift considerably between screen sizes.

Practical example

Imagine an online shoe store that collects 2,000 sessions on a product page over one month. The click map records 1,000 clicks in total, and 620 of them land on the main product image, which is not a link. Only 150 clicks go to the add-to-cart button. The scroll map also shows that just 700 sessions, or 35 percent, reach the customer reviews block.

With these results, the team still does not know whether the problem lies in the button size, the price or the size information. However, it has reasonable hypotheses: the main image seems to invite interaction without leading anywhere, and the reviews sit beyond the point most visitors reach. A testable hypothesis could be that showing the size guide next to the add-to-cart button increases clicks on that button. That change should then be validated with an A/B test, not with the heatmap itself.

How to apply it step by step

  1. Define the specific question you want to answer, for example whether users can easily find the main purchase button.
  2. Choose a page or template with enough traffic, and decide whether you will analyze desktop, mobile or both separately.
  3. Install the tracking respecting user consent, and exclude fields that could contain personal data such as form inputs.
  4. Collect data over a period that covers weekly variations, then check that the number of sessions is large enough to show repeatable patterns.
  5. Read the map alongside metrics: compare clicks with visits to each element and with the page conversion rate.
  6. Document your observations and write concrete hypotheses, each with a proposed change and a success metric.
  7. Validate the most promising hypothesis with an A/B test and measure its impact on the target metric before accepting the change.

Common mistakes

  • Confusing attention with clicks: a heavily clicked area is not always the most useful one; sometimes it signals confusion or an expectation the page does not meet.
  • Ignoring data volume: drawing conclusions from a few dozen sessions can lead to decisions based on noise.
  • Mixing devices: combining desktop and mobile in one map hides important differences in layout and behavior.
  • Reading scroll data without context: if few users reach a section, that does not make it irrelevant, especially if the key content sits higher up and the section is only a secondary detail.
  • Not acting on findings: producing maps without formulating hypotheses or running experiments turns the tool into a report that improves nothing.

Best practices

  • Combine heatmaps with session recordings and funnel analysis to see the context behind each interaction.
  • Segment by traffic source, device or customer type, since usage patterns can differ widely between groups.
  • Set a fixed analysis period and compare it with periods before or after a change, to avoid biased conclusions caused by seasonality or campaigns.
  • Pay special attention to mobile, where scrolling behavior and the tappable area have a greater influence on the experience.
  • Record each hypothesis with its source of evidence, so you can prioritize them later using an explicit framework.

Frequently asked questions

Does a heatmap show what people actually look at?

Not with precision. Mouse movement and clicks are indirect signals of interest, and they do not confirm what someone read or noticed. Real eye tracking requires specialized equipment and usually works with small samples. For that reason, it is better to treat heatmaps as clues that guide the analysis, not as definitive proof.

How many sessions do I need before a heatmap is reliable?

There is no universal number. It depends on the page and on how many interactions you want to analyze. A practical approach is to wait until the main zones accumulate enough events for the pattern to repeat across different days, and always cross-check with conversion data before drawing conclusions.

Can I use heatmaps to make changes without running a test?

They are useful for generating hypotheses and spotting obvious problems, but the effect of a change on conversion is better measured with an A/B test. A change that seems logical can end up hurting results, and only controlled experimentation can confirm whether it helps.