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}/heatmapsScope 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
typestringquery
click|rage|dead|move|scroll|attention
viewportstringquery
fromstringquery
tostringquery
cohortstringquery
comparestringquery
x_binsintegerquery
y_bin_pxintegerquery
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

Code samples

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

Responses

200
Example
{
  "attention_elements": [
    {
      "ms": 0,
      "selector": "string",
      "sessions": 0
    }
  ],
  "avg_depth": 0,
  "bands": [
    {
      "band": 0,
      "ms": 0,
      "sessions": 0
    }
  ],
  "bins": [
    {
      "count": 0,
      "sessions": 0,
      "users": 0,
      "x": 0,
      "y": 0
    }
  ],
  "max": 0,
  "reach": [
    {
      "depth_pct": 0,
      "sessions": 0
    }
  ],
  "sessions": 0,
  "total": 0,
  "compare": {
    "attention_elements": [
      {
        "ms": 0,
        "selector": "string",
        "sessions": 0
      }
    ],
    "avg_depth": 0,
    "bands": [
      {
        "band": 0,
        "ms": 0,
        "sessions": 0
      }
    ],
    "bins": [
      {
        "count": 0,
        "sessions": 0,
        "users": 0,
        "x": 0,
        "y": 0
      }
    ],
    "max": 0,
    "reach": [
      {
        "depth_pct": 0,
        "sessions": 0
      }
    ],
    "sessions": 0,
    "total": 0
  },
  "type": "string",
  "url": "string",
  "x_bins": 0,
  "y_bin_px": 0
}
Schema
attention_elementsarray
avg_depthnumber
bandsarray
type=attention: all ten bands, top elements by visible time.
binsarray
maxinteger
reacharray
sessionsinteger
totalinteger
compareHeatmapShape
Show child parameters
attention_elementsarray
avg_depthnumber
bandsarray
type=attention: all ten bands, top elements by visible time.
binsarray
maxinteger
reacharray
sessionsinteger
totalinteger
typestringrequired
click | rage | dead | move | scroll | attention
urlstringrequired
x_binsintegerrequired
y_bin_pxintegerrequired
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/heatmaps/cellScope insight:read

Sessions with points in one cell of the binned map (same filters as `GET /heatmaps`), most points first; each links to its replay.

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
typestringquery
click|rage|dead|move
xintegerqueryrequired
cell column, 0..x_bins
yintegerqueryrequired
cell row (y_px / y_bin_px)
x_binsintegerquery
y_bin_pxintegerquery
viewportstringquery
fromstringquery
tostringquery
cohortstringquery

Code samples

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

Responses

200 {x, y, total, data: [{session_id, count, first_at, last_at}]}
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/heatmaps/compareScope insight:read

Parameters

project_idstringpathrequired
urlsstringqueryrequired
2 to 10 comma separated pages
goalstringquery
conversion event
fromstringquery
tostringquery
viewportstringquery
cohortstringquery
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+).

Code samples

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

Responses

200
Example
{
  "data": [
    {
      "avg_experience_score": 0,
      "avg_scroll_depth": 0,
      "clicking_sessions": 0,
      "clicks": 0,
      "conversion_rate": 0,
      "converted_sessions": 0,
      "ctr": 0,
      "dead_clicks": 0,
      "frustrated_sessions": 0,
      "frustration_rate": 0,
      "rage_clicks": 0,
      "scroll_sessions": 0,
      "sessions": 0,
      "unhappy_rate": 0,
      "unhappy_sessions": 0,
      "url": "string"
    }
  ],
  "from": "2024-01-01T00:00:00Z",
  "goal": "string",
  "to": "2024-01-01T00:00:00Z"
}
Schema
dataPageCompare[]required
In the order the pages were asked for.
Show child parameters
avg_experience_scorenumber
Mean experience score (0-100) of the page's sessions; None without sessions.
avg_scroll_depthnumberrequired
Mean of each scrolling session's deepest scroll, 0 to 1.
clicking_sessionsintegerrequired
clicksintegerrequired
conversion_ratenumber
converted_sessionsintegerrequired
Page sessions that reached goal; 0 without a goal.
ctrnumber
clicking_sessions / sessions.
dead_clicksintegerrequired
frustrated_sessionsintegerrequired
Sessions with a rage, dead or other frustration signal on the page.
frustration_ratenumber
rage_clicksintegerrequired
scroll_sessionsintegerrequired
sessionsintegerrequired
Sessions with a pageview of the page.
unhappy_ratenumber
unhappy_sessionsintegerrequired
Page sessions in the project's unhappy experience bucket.
urlstringrequired
fromstringrequired
goalstring
tostringrequired
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/heatmaps/confettiScope 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
breakdownstringqueryrequired
channel|referrer|device|country|browser|os|visitor|event:<key>|person:<key>
dotsintegerquery
sampled dots, default 5000, at most 20000
viewportstringquery
fromstringquery
tostringquery
cohortstringquery
min_widthintegerquery
max_widthintegerquery
flagstringquery
variantstringquery

Code samples

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

Responses

200 legend [{value, clicks}] and dots [[x_ratio, y_px, legend index]]
{}
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/heatmaps/coverageScope insight:read

Pages viewed in the last `days` (default 30) with pageviews, heatmap points and whether the capture allow-list (`settings.sdk.heatmap_url_allowlist`) covers them.

Parameters

project_idstringpathrequired
daysintegerquery
1..=90, default 30

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/heatmaps/coverage"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 {allowlist, all_pages, data: [{path, views, points, covered}]}
400
404
503

Updated