Quick answer
A dynamic heatmap is a website heatmap that stays accurate when the page changes after loading. It ties clicks to the element or page state where they happened, so clicks on menus, modals, tabs and single-page app views are not painted over unrelated content on one static screenshot.
What is a dynamic heatmap?
A dynamic heatmap is a website heatmap built to stay accurate when the page changes after it loads. Menus open, dialogs appear, tabs swap content, banners push everything down and single-page apps replace the whole view without a page load. A dynamic heatmap ties each click to the element or page state where it happened, instead of painting every click onto one fixed picture.
The ordinary heatmap stacks click coordinates on a background image. That works well on a page that looks the same to everyone. It fails quietly on a changing page: the colors still look convincing, but some of them sit on top of content the visitor never clicked.
The phrase has other meanings. In mapping software, a "dynamic" heat map recalculates density colors as you zoom or pan, and charting tools use it for a heat map that redraws when you pick a filter. This page is about web behavior analytics.
Why a static screenshot misplaces clicks
A click is recorded at a position. The browser can report it relative to the whole document (pageY) or to the visible window. Neither number says what was under the pointer at that moment. If the background picture was taken in a different state, the position points at the wrong thing.
| Page behavior | What the screenshot shows | What goes wrong |
|---|---|---|
| Dropdown or flyout menu | Menu closed | Clicks on options land on whatever lies underneath |
| Modal dialog | Page without the dialog | Close and submit clicks scatter across the page body |
| Tabs and accordions | Only the default panel | Clicks from every panel pile onto one |
| Late banner or personalized block | One variant, or none | Everything below it shifts, producing two hot spots for one button |
| Responsive layout | One width | The same button sits at different positions on other screens |
| Single-page app route change | The first view | Clicks from later views are mixed in unless each URL is treated as its own page |
Coordinate, element and state-based heatmaps
| Method | How a click is placed | Handles well | Weak spot |
|---|---|---|---|
| Coordinate-based | By x and y on a background | Static pages; clicks on non-interactive areas | Anything that moves or appears later |
| Element-based | By identifying the clicked element, then drawing or listing it wherever it is | Moved buttons, menu items, layout differences between screens | Elements whose IDs or classes are generated anew on each build |
| State-based | Separate backgrounds for each state, such as menu open or modal shown | Seeing a dialog or menu as the visitor saw it | Someone has to define and capture the states |
| Live overlay | Drawn over the running page | Checking the current layout, not an old capture | Sites can refuse to be framed, and the state still has to be reproduced |
Tools combine these in different ways, and some call any of the last three "dynamic". When you evaluate a tool, ask what it does with a click on a menu item that was hidden when the background was captured.
Worked example: a product page with a size menu
Sample data: a product page records 4,000 clicks. A size menu sits above a block of description text. Visitors opened the menu 1,240 times. In 1,180 of those they picked a size; in the other 60 they clicked the menu button again and closed it.
| Element | Clicks | On a closed-menu screenshot | In an element-based view |
|---|---|---|---|
| Size menu button (1,240 opens + 60 closes) | 1,300 | On the button | Size menu button |
| Option S | 190 | On the description text | Option S |
| Option M | 420 | On the description text | Option M |
| Option L | 370 | On the description text | Option L |
| Option XL | 200 | On the description text | Option XL |
| All other elements | 1,520 | In place | In place |
| Total | 4,000 | 1,180 clicks misplaced | None assigned to the text |
The screenshot suggests that visitors keep clicking a paragraph that does nothing, which reads like a dead click problem. A designer might turn the text into a link. In fact 1,180 clicks, or 29.5% of all clicks on the page, belong to the menu.
The element view also answers questions the picture cannot. M takes 420 of 1,180 selections (35.6%) and L 370 (31.4%). Of 1,240 opens, 60 (4.8%) ended without a choice.
Layout shifts cause the second classic error. Suppose a promotion banner 80 pixels tall appears for 40% of visitors, and the add-to-cart button, 48 pixels tall, gets 900 clicks. About 540 are recorded at one height and 360 about 80 pixels lower, further than the button is tall. A coordinate map shows two blobs, one of them off the button; an element view shows one button with 900 clicks.
Single-page apps and route changes
Single-page apps change what is on screen with the History API. Calling pushState updates the address without loading a new document, so a recorder that only starts fresh on page load will keep filing clicks under the first URL. Check three things:
- Each route is its own page. Clicks after a route change must be recorded with the new path.
- Similar URLs are grouped.
/product/18and/product/27share a template and usually belong on one map, such as/product/:id. - Hash routes are not ignored. Apps that route with
#/often need a setting so that the part after#counts.
Dynamic heatmap vs click map vs session replay
| Tool | Unit | Question it answers |
|---|---|---|
| Click map | Many visitors, click positions | Which areas of this page get clicked? |
| Scroll map | Many visitors, depth reached | How far down do people get? |
| Dynamic heatmap | Many visitors, elements and states | Which controls get clicked, including ones that appear only after an action? |
| Session replay | One visit, in time order | What did this person see and do just before and after? |
| AI heatmap | No visitors; a model's prediction | Where might attention go on a design not yet live? |
Scroll data has its own version of the problem: on a page that keeps loading more items, document height keeps changing, so "50% depth" does not mean the same place for everyone.
How to check a heatmap you already have
- Open the page yourself and list everything that is hidden at first: menus, dialogs, tabs, accordions, filters.
- Look for heat over plain text, images or empty margins. Compare each spot with your list of hidden controls.
- Open the element list. If a control that never appears in the background has many clicks, the picture is not showing the whole story.
- Split by device. Mixing phone and desktop layouts creates hot spots that match neither.
- Check the dates. Clicks from before a redesign drawn on the new page are another form of the same error.
Decision rule: if a conclusion depends on a click position near anything that moves or opens, confirm it in the element list or in a few recordings before you change the design.
Common mistakes
- Fixing a dead area that is not dead. Check hidden menus first.
- Selectors that change on every release. Give important controls a stable ID or attribute so their history stays together.
- Building controls from plain boxes. A script-only
divmay not be recognized as clickable by a collector. Use real buttons and links. - Reading two blobs as two behaviors. It may be one button in two layouts.
- Pooling too many URLs. Grouping by template helps only when the pages share a layout.
Heatmaps for changing pages in TapCub
Take the product page above. TapCub builds heatmaps from autocapture, which needs the Pro plan or higher:

- Turn on collection. Enable autocapture under Web analytics › Configuration › SDK code, and switch on scroll depth if you want the scroll map. Apps with hash routing add
data-hash="true"to the script tag. - Open the page template. In All-platform analytics › Behavior › Heatmaps, pages are merged by path template, so product pages share a row such as
/product/:id. Pick a device before reading anything. - Read the map with care. The click map plots positions: horizontally as a share of viewport width, vertically in page pixels. You can overlay the live page or capture a snapshot at desktop or mobile width. A snapshot shows the page as it opens, so expect the size options not to be in it.
- Switch to Elements. This tab lists the most clicked controls with their share, visitors and average position, so each size option that is a real button or link shows up as a control and not as heat on a paragraph. Only clickable elements are recorded.
- Watch a few visits if needed. Session replay is a separate feature and is off by default; when enabled, it shows the menu opening in context.
TapCub does not draw a separate background for each menu or dialog state. Where a conclusion rests on a hidden control, use the element list rather than the colors.
Sources
- MDN Web Docs, MouseEvent: pageY property (click position relative to the whole document; checked 2026-12-03).
- MDN Web Docs, History: pushState() method (changing the URL without loading a new document; checked 2026-12-03).
- Esri, Heat map symbology (the mapping meaning of dynamic rendering; checked 2026-12-03).
Was this explanation clear?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Data Analyst
Explores traffic sources, conversion funnels, and retention, using clear metric definitions and concrete examples to explain what the numbers mean.