Skip to content

Heatmaps

A heatmap shows where visitors click on one page and how far they scroll, drawn over a picture of the page as they saw it, on desktop, mobile, or tablet. Use it to see whether people find a button, what they click that isn’t a link, and how much of a page they read.

Where to find it

In a site, open Reports › Heatmaps in the sidebar. Heatmaps are counts, so everyone in the workspace can see them. Sample sites, the demo’s included, have none: heatmaps are drawn from the pages of real visits.

Turn heatmaps on

Heatmaps are off until a workspace admin turns them on, and they need a second script, the recorder, beside the tracking script. Replays use the same recorder, but heatmaps work without them, and whether or not Individual visits is on.

1

In the site, open Settings › Recording. Under Replays and heatmaps, turn on Heatmaps and select Save changes.

2

Open Add the recorder and put its tag on every page, next to the tracking script. The recorder works from the tracking script’s page view, so on a page without the tracking script nothing is counted.

3

Leave When recording starts on Wait for consent, and have your consent banner run the consent line below when a visitor agrees. It works before or after the recorder loads. If your consent tool adds scripts only after the visitor agrees, pick Start at once instead.

Every page, next to the tracking script
<script defer src="https://app.lyli.io/r.js" data-site="s_k3m9x2p7qa"
  data-consent="wait"></script>
When a visitor agrees
window.lyliConsent = true; window.lyli?.record?.();

Counting starts from then on; days before it stay empty. If a visitor changes their mind, lyli.stopRecording() stops the counting and drops what hasn’t been sent.

Read a heatmap

1

Pick a page. The page menu lists the pages counted in the period, the busiest first, and you can search it.

2

Pick a device: Desktop, Mobile, or Tablet, each with its page views.

3

Pick a map: Clicks or Scroll.

Clicks draws clouds where clicks land, from few to many, and outlines the ten elements most page views clicked, each with that share. Scroll shades the page from red, where every page view got, to teal, where few did, with lines where 75%, 50%, and 25% of them still were.

The period works as on every report, and a heatmap is counted by your site’s own days, whatever time zone you read reports in. Filters, segments, cohorts, and comparisons don’t apply. Save report… keeps the page, device, and map as a saved heatmap, listed at the top of Heatmaps for everyone in the workspace.

What the numbers mean

Clicks shows Page views, Clicks, Rage clicks, and Clicked nothing above the picture, with Most clicked beside it. Scroll shows Page views, Average depth, Reached the end, and Stayed on the first screen, with How far they got.

NumberWhat it counts
Page viewsPage views of the page on that device where the recorder counted, each once however long it stayed open. Fewer than the Overview’s: only pages with the recorder, and only visitors who agreed, unless you count before consent.
ClicksEvery click on the page, and how many a page view has on average.
Rage clicksBursts of clicks on one spot: the third click within a second, at most 30 px from the others. Often something that looks clickable but isn’t, or is slow. Counted once a burst, with how many spots they were on.
Clicked nothingThe share of page views with no click at all.
Average depthHow far down page views got on average: the bottom of the window at its deepest, as a share of the page’s height. Each page view counts once, at its deepest point.
Reached the endThe share of page views whose window reached the bottom.
Stayed on the first screenThe share of page views that never scrolled.
Most clickedThe six elements most page views clicked, with the share that clicked each. Select one to find it on the picture. Rage clicks are listed under it.
How far they gotThe share of page views that reached each of the page’s own headings, from The first screen to The end of the page. A part counts once its heading comes into view.

How clicks and scrolling are counted

  • A click counts on the link, button, field, or label it lands in, or else on the element itself, with where on it the click landed.
  • We know an element only by where it sits in the page: its tags and their positions, and its id when it’s plain, never one with three digits in a row, which could name an account or an order. Never its text.
  • Depth is measured in twentieths of the page, while the visitor is on that page. The recorder sends what’s new when the page is hidden, left, or changes path, so a single-page app’s pages are counted apart.
  • The picture is the first view of the page from a visit the recorder started for (with Wait for consent, a visitor who agreed), one for each page and device, taken again once it’s a day old. Text and images are hidden in it as your replays hide them. Until one is taken, the heatmap says there’s no picture of this page on this device yet.

Limits and edge cases

  • A heatmap is for one exact page. Pages listed under Settings › Recording › What’s recorded › Pages never recorded count nothing, not even clicks. Bots are left out.
  • Clicks are tied to where an element sits. If a page’s layout changed during the period, older clicks may not match today’s picture, so pick a period after the change.
  • If nothing is counted with Wait for consent, check that your consent banner runs the consent line.
  • Heatmaps aren’t in share links, the API, or MCP, and they pause with the workspace’s dashboards.

Privacy and consent

Heatmaps are counts only, per page, device, and day. No visit, visitor, text, or address is kept with them. The counts are kept as long as the visits, and the pictures 30 days. Deleting all replays deletes the pictures taken from them; the counts stay.

In the EU, assume heatmaps need the visitor’s consent. In the UK, they need it too, unless the statistics exception applies and you give a notice and an opt-out. That’s why counting waits for your consent banner by default. Count before consent, under Heatmaps in Settings › Recording, counts every page view before consent; replays still wait. It mainly fits the UK’s statistics exception. Elsewhere, assume you need consent unless your adviser says otherwise. Where it fits, it holds only if you tell visitors in your privacy notice and give them a free, simple way to object, like this link:

A link for your privacy page
<a href="#" data-lyli-opt-out>Opt out of analytics and recording</a>

The recorder makes the link a switch, and it stops everything we collect in that browser for your site, page views included. Settings › Recording also has text for your privacy page and consent banner that follows your settings. When you open a heatmap, your browser loads the site’s images, fonts, and styles from the site itself, as a visitor’s browser would.