heatmaps

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-heatmaps"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/91572aed-cba5-4511-ab05-efc511525882/social-card.svg?v=3e7ae33eec8b" alt="heatmaps" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/heatmaps/elementsScope insight:read

Parameters

channelstringquery
Comma separated channels (Paid Search,Email).
utm_sourcestringquery
utm_mediumstringquery
utm_campaignstringquery
referrerstringquery
Comma separated referring domains.
countrystringquery
Comma separated ISO country codes.
languagestringquery
screenstringquery
Comma separated resolutions (1920x1080).
entry_pagestringquery
Exact path of the session's first pageview.
exit_pagestringquery
visitorstringquery
new (first session of the visitor) or returning.
person_propertystringquery
With person_value: only sessions whose person has this property equal to the value.
person_valuestringquery
experiencestringquery
Experience bucket: happy, neutral or unhappy (N-DXA-1).
article_readstringquery
Article read-through: finished or abandoned_headline (N-DXA-6).
reader_typestringquery
Reader type: single (1 article), few (2-3) or many (4+).
project_idstringpathrequired
urlstringqueryrequired
viewportstringquery
fromstringquery
tostringquery
cohortstringquery
goalstringquery
conversion event for the lift
min_widthintegerquery
viewports at least this many CSS px wide
max_widthintegerquery
viewports below this many CSS px wide
flagstringquery
with variant: only sessions served that variant
variantstringquery
keystringquery
selector (default) or href: group clicks by the link target
limitintegerquery
cursorstringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/heatmaps/elements?url=<url>"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 ranked by clicks
Example
{
  "data": [
    {
      "click_recurrence": 0,
      "click_share": 0,
      "clicks": 0,
      "conv_rate_clicked": 0,
      "conv_rate_other": 0,
      "conversion_lift": 0,
      "converted_sessions": 0,
      "ctr": 0,
      "dead_clicks": 0,
      "rage_clicks": 0,
      "selector": "string",
      "sessions": 0,
      "time_to_first_click_ms": 0
    }
  ],
  "goal": "string",
  "key": "string",
  "next_cursor": "string",
  "url": "string"
}
Schema
dataHeatElement[]required
Show child parameters
click_recurrencenumberrequired
Clicks per clicking session (LC-EXP-41).
click_sharenumberrequired
clicksintegerrequired
conv_rate_clickednumberrequired
conv_rate_othernumberrequired
conversion_liftnumberrequired
converted_sessionsintegerrequired
ctrnumberrequired
dead_clicksintegerrequired
rage_clicksintegerrequired
selectorstringrequired
sessionsintegerrequired
time_to_first_click_msintegerrequired
Median ms from the session's first interaction on the page to its first click here.
goalstringrequired
keystringrequired
selector (default) or href: what data[].selector holds.
next_cursorstringrequired
Pass as cursor for the next page; absent on the last.
urlstringrequired
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/heatmaps/foldScope insight:read

The scroll fold line per device bucket: median viewport height, quartiles and the share of scrolling sessions that went below it. Pass `breakpoints` for custom device widths.

Parameters

channelstringquery
Comma separated channels (Paid Search,Email).
utm_sourcestringquery
utm_mediumstringquery
utm_campaignstringquery
referrerstringquery
Comma separated referring domains.
countrystringquery
Comma separated ISO country codes.
languagestringquery
screenstringquery
Comma separated resolutions (1920x1080).
entry_pagestringquery
Exact path of the session's first pageview.
exit_pagestringquery
visitorstringquery
new (first session of the visitor) or returning.
person_propertystringquery
With person_value: only sessions whose person has this property equal to the value.
person_valuestringquery
experiencestringquery
Experience bucket: happy, neutral or unhappy (N-DXA-1).
article_readstringquery
Article read-through: finished or abandoned_headline (N-DXA-6).
reader_typestringquery
Reader type: single (1 article), few (2-3) or many (4+).
project_idstringpathrequired
urlstringqueryrequired
breakpointsstringquery
ascending widths, e.g. 480,768,1024
fromstringquery
tostringquery
cohortstringquery
flagstringquery
variantstringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/heatmaps/fold?url=<url>"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "breakpoints": [
    0
  ],
  "data": [
    {
      "below_fold_rate": 0,
      "below_fold_sessions": 0,
      "bucket": "string",
      "fold_px": 0,
      "fold_px_p25": 0,
      "fold_px_p75": 0,
      "sessions": 0
    }
  ],
  "url": "string"
}
Schema
breakpointsinteger[]required
dataHeatFoldBucket[]required
Show child parameters
below_fold_ratenumberrequired
below_fold_sessionsintegerrequired
bucketstringrequired
mobile|tablet|desktop, or a breakpoint range such as 480-767.
fold_pxintegerrequired
Median viewport height in CSS px: the fold line.
fold_px_p25integerrequired
fold_px_p75integerrequired
sessionsintegerrequired
urlstringrequired
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/heatmaps/recordingsScope replay:read

Up to three recent recordings that visited the page: alternatives when the snapshot of the newest one cannot be shown (blocked frame, no full snapshot).

Parameters

project_idstringpathrequired
urlstringqueryrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/heatmaps/recordings?url=<url>"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 {data: [{session_id, started_at, duration_ms}]}
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/heatmaps/snapshotScope replay:read

Parameters

project_idstringpathrequired
urlstringqueryrequired
session_idstringquery
this recording instead of the newest one visiting the page

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/heatmaps/snapshot?url=<url>"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 audited as replay.viewed
Example
{
  "chunk": {
    "expires_at": "2024-01-01T00:00:00Z",
    "presigned": true,
    "seq": 0,
    "url": "string",
    "window": 0,
    "window_id": "string"
  },
  "session_id": "string",
  "started_at": "2024-01-01T00:00:00Z",
  "url": "string"
}
Schema
chunkobjectrequired
Show child parameters
expires_atstringrequired
presignedbooleanrequired
seqintegerrequired
urlstringrequired
windowintegerrequired
Browser tab (window) of the chunk, 0 for the first; each window is played on its own.
window_idstringrequired
SDK window id of the tab the chunk was recorded in; empty for chunks stored before it was indexed.
session_idstringrequired
started_atstringrequired
urlstringrequired
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/heatmaps/snapshotsScope insight:read

Parameters

project_idstringpathrequired
urlstringqueryrequired
fromstringquery
tostringquery
limitintegerquery
cursorstringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/heatmaps/snapshots?url=<url>"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Newest day first
Example
{
  "data": [
    {
      "clicks": 0,
      "created_at": "2024-01-01T00:00:00Z",
      "day": "string",
      "sessions": 0,
      "url": "string",
      "x_bins": 0,
      "y_bin_px": 0
    }
  ],
  "next_cursor": "string"
}
Schema
dataobject[]required
Show child parameters
clicksintegerrequired
created_atstringrequired
daystringrequired
UTC day the snapshot covers.
sessionsintegerrequired
Sessions that clicked.
urlstringrequired
x_binsintegerrequired
y_bin_pxintegerrequired
next_cursorstring
400
404

Updated