Heatmap · web analytics

On this page 7

A heatmap in web analytics is a color-coded overlay on a web page that aggregates visitor behavior, such as clicks, cursor movement, taps and scroll depth, so that areas of high activity appear warm (red, orange) and areas of low activity appear cool (blue, green). In e-commerce conversion work, heatmaps show where shoppers actually engage with product pages, category listings and checkout steps, and where they ignore or misread elements that the design team considered important.

Heatmaps are a qualitative diagnostic tool: they do not prove why visitors behave as they do, but they reveal patterns that analytics dashboards hide behind averages. Not to be confused with the general data visualization chart of the same name, which colors the cells of any matrix.

How a web analytics heatmap is generated

A heatmap is built from event data collected by a JavaScript tracking snippet that records interaction coordinates relative to page elements. The tool aggregates events from many sessions, applies a density function that blurs individual points into a smooth surface, and maps density to a color gradient drawn over a screenshot or live render of the page.

Modern tools anchor events to DOM elements rather than raw pixels, which keeps the map accurate when layouts shift across screen widths. Data is usually segmented by device type, because a desktop click map and a mobile tap map of the same URL describe very different layouts.

The table below summarizes the main stages of the data pipeline and the decisions that affect accuracy at each stage.

StageWhat happensAccuracy risk
CollectionScript records clicks, moves, scrolls and viewport sizeAd blockers and consent refusals reduce coverage
SamplingTool stores a share of sessions to limit costLow sample rates distort rare paths
Element mappingEvents are tied to selectors or coordinatesDynamic content breaks selector matching
AggregationEvents are summed per area and segmentMixed devices blur distinct layouts
RenderingDensity is drawn as a color overlayColor scale can exaggerate small differences
Stages of heatmap data processing

Types of heatmaps and what each reveals

Each heatmap type measures a different behavioral signal, and the right choice depends on the question being asked about the page. Most conversion rate optimization (CRO) programs use at least click and scroll maps together.

TypeSignal measuredTypical question answered
Click mapClicks and taps per elementDo shoppers click the call to action or decorative images
Scroll mapShare of visitors reaching each depthHow many visitors see the reviews or shipping details
Move mapCursor position over timeWhich areas draw desktop attention without a click
Attention mapTime an area stays in the viewportWhich content holds attention on mobile
Rage click mapRapid repeated clicks on one spotWhich elements appear clickable but do nothing
Main heatmap types used in e-commerce

Move maps deserve caution. Research on cursor and gaze correlation shows a moderate relationship on desktop, but cursor position is a weak proxy for reading, and the signal does not exist at all on touch devices.

Heatmaps show aggregate patterns on a single page, while other tools explain sequences, individual journeys or causal impact. Combining them avoids drawing conclusions from one partial view.

MethodUnit of analysisStrengthLimitation
HeatmapMany sessions on one pageFast visual pattern detectionShows what, not why
Session recordingOne visitor journeyReveals context and hesitationTime-consuming to review at scale
Conversion funnel reportSteps across pagesQuantifies drop-off between stepsNo detail within a page
A/B testTwo or more page variantsEstablishes causal impactNeeds sufficient traffic and time
Eye tracking studyGaze of recruited participantsMeasures true visual attentionSmall samples and lab setting
Heatmaps and neighboring analysis methods

A practical workflow uses a funnel report to find the leaking step, a heatmap to locate the problem area on that page, session recordings to understand the behavior, and an A/B test to validate the fix before rolling it out.

Reading heatmaps reliably

Reliable interpretation requires enough data per segment and a clear comparison baseline. As a rule of thumb, practitioners wait for at least several thousand pageviews per device segment before trusting fine-grained patterns, although the exact threshold depends on page complexity and how rare the behavior of interest is.

Observed patternLikely causePossible action
Clicks on non-linksImages or text look interactiveMake the element clickable or restyle it
Sharp scroll drop-offA false bottom such as a full-width bannerAdd visual cues that content continues
Cold primary buttonWeak contrast or poor placementTest a stronger call to action
Hot filters, cold productsShoppers cannot find relevant itemsImprove filter defaults and sorting
Rage clicks on a fieldValidation error or broken controlFix the bug and retest
Common heatmap patterns and how to act on them

Comparing heatmaps before and after a change, or between converting and non-converting segments, is far more informative than studying a single map in isolation.

Limitations, privacy and common mistakes

Heatmap tracking processes behavioral data and may fall under GDPR and ePrivacy consent rules in Europe, so tools must mask form inputs and personal data by default. Consent refusal also biases the sample toward visitors who accept tracking. Frequent analytical mistakes include:

  • Mixing desktop and mobile data in one map, which hides layout-specific problems.
  • Analyzing pages with personalized or rotating content as if every visitor saw the same layout.
  • Treating warm areas as success, when heavy clicking can signal confusion.
  • Redesigning pages from heatmap impressions alone instead of validating changes with tests.

A non-technical view

Imagine a shop floor where the carpet slowly changes color wherever people walk and stop. After a week, the busy paths glow red and the forgotten corners stay blue. A website heatmap does the same thing for a web page.

It shows where visitors click, scroll and linger, so a store owner can see which parts of a page attract attention and which are ignored. It does not explain the reasons, but it shows exactly where to look first.

A concrete example

A mid-sized online furniture store notices in its funnel report that only 3% of mobile product page visitors add an item to the cart, against 7% on desktop. The team runs click and scroll heatmaps on its sofa pages, segmented by device, over two weeks and roughly 40,000 mobile pageviews.

The scroll map shows that only 35% of mobile visitors scroll past a large lifestyle photo gallery to reach the delivery cost and the add-to-cart button. The click map shows heavy tapping on fabric swatch images that were not interactive. The team moves the price, delivery estimate and button above the gallery and makes the swatches open color variants. An A/B test then confirms a mobile add-to-cart rate increase from 3% to 4.2%, and the change is rolled out to all product pages.