A page's click heatmap
GET/ v1/ projects/ {project}/ analytics/ heatmaps/ clicks
The clicks on one page for one device width (desktop when not given), counted in a grid: columns columns across the page's width (a click's x is a share of the width) and rows of row_height pixels from the top, max_rows rows at most (clicks further down are left out). Only cells with clicks are listed. With the page's clicks, page views, median height in pixels, and its 20 most clicked elements by CSS selector.
Path parameters
project
The project's id (
prj_…).Query parameters
page
The page's path, such as
/pricing.device
The device width the clicks were made at, from the viewport (mobile under 768 px, tablet under 1,024, desktop from there).
desktoptabletmobilepreset
todayyesterday7d30d90dthis_monthlast_monththis_yearallfrom
A date (2026-11-01) or an RFC 3339 time.
to
A date (included) or an RFC 3339 time (excluded).
Responses
The click heatmap.
page
device
desktoptabletmobileclicks
views
page_height
The page's median height in pixels; 0 when unknown.
columns
row_height
A row's height in pixels.
max_rows
cells
Show 3 fieldsHide fields
col
From 0 (left) to columns − 1.
row
From 0 (top); the row starts at row × row_height pixels.
clicks
elements
Show 2 fieldsHide fields
selector
The clicked element as a short CSS selector.
clicks
date_range
A resolved range [from, to) in UTC.
Show 2 fieldsHide fields
from
A time in UTC, ISO 8601.
to
A time in UTC, ISO 8601.
Example response
1{2"page": "/pricing",3"device": "desktop",4"clicks": 1,5"views": 1,6"page_height": 1,7"columns": 1,8"row_height": 1,9"max_rows": 1,10"cells": [11{12"col": 1,13"row": 1,14"clicks": 115}16],17"elements": [18{19"selector": "string",20"clicks": 121}22],23"date_range": {24"from": "2026-11-21T09:30:00Z",25"to": "2026-11-21T09:30:00Z"26}27}
Errors
Every error has the same shape: error.code, a message for people and details.
| Status | Code |
|---|---|
validation_error | |
clickhouse_not_configured |