heatmaps
GET
https://lucidace.com /v1/projects/{project_id}/heatmaps Scope insight:readParameters
channelstringqueryComma separated channels (
Paid Search,Email).utm_sourcestringqueryutm_mediumstringqueryutm_campaignstringqueryreferrerstringqueryComma separated referring domains.
countrystringqueryComma separated ISO country codes.
languagestringqueryscreenstringqueryComma separated resolutions (
1920x1080).entry_pagestringqueryExact path of the session's first pageview.
exit_pagestringqueryvisitorstringquerynew (first session of the visitor) or returning.person_propertystringqueryWith
person_value: only sessions whose person has this property equal to the value.person_valuestringqueryexperiencestringqueryExperience bucket:
happy, neutral or unhappy (N-DXA-1).article_readstringqueryArticle read-through:
finished or abandoned_headline (N-DXA-6).reader_typestringqueryReader type:
single (1 article), few (2-3) or many (4+).project_idstringpathrequiredurlstringqueryrequiredtypestringqueryclick|rage|dead|move|scroll|attention
viewportstringqueryfromstringquerytostringquerycohortstringquerycomparestringqueryx_binsintegerqueryy_bin_pxintegerquerymin_widthintegerqueryviewports at least this many CSS px wide
max_widthintegerqueryviewports below this many CSS px wide
flagstringquerywith variant: only sessions served that variant
variantstringqueryCode 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_elementsarrayavg_depthnumberbandsarraytype=attention: all ten bands, top elements by visible time.binsarraymaxintegerreacharraysessionsintegertotalintegercompareHeatmapShapeShow child parameters
attention_elementsarrayavg_depthnumberbandsarraytype=attention: all ten bands, top elements by visible time.binsarraymaxintegerreacharraysessionsintegertotalintegertypestringrequiredclick | rage | dead | move | scroll | attention
urlstringrequiredx_binsintegerrequiredy_bin_pxintegerrequired400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/heatmaps/cell Scope insight:readSessions with points in one cell of the binned map (same filters as `GET /heatmaps`), most points first; each links to its replay.
Parameters
channelstringqueryComma separated channels (
Paid Search,Email).utm_sourcestringqueryutm_mediumstringqueryutm_campaignstringqueryreferrerstringqueryComma separated referring domains.
countrystringqueryComma separated ISO country codes.
languagestringqueryscreenstringqueryComma separated resolutions (
1920x1080).entry_pagestringqueryExact path of the session's first pageview.
exit_pagestringqueryvisitorstringquerynew (first session of the visitor) or returning.person_propertystringqueryWith
person_value: only sessions whose person has this property equal to the value.person_valuestringqueryexperiencestringqueryExperience bucket:
happy, neutral or unhappy (N-DXA-1).article_readstringqueryArticle read-through:
finished or abandoned_headline (N-DXA-6).reader_typestringqueryReader type:
single (1 article), few (2-3) or many (4+).project_idstringpathrequiredurlstringqueryrequiredtypestringqueryclick|rage|dead|move
xintegerqueryrequiredcell column, 0..x_bins
yintegerqueryrequiredcell row (y_px / y_bin_px)
x_binsintegerqueryy_bin_pxintegerqueryviewportstringqueryfromstringquerytostringquerycohortstringqueryCode 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
GET
https://lucidace.com /v1/projects/{project_id}/heatmaps/compare Scope insight:readParameters
project_idstringpathrequiredurlsstringqueryrequired2 to 10 comma separated pages
goalstringqueryconversion event
fromstringquerytostringqueryviewportstringquerycohortstringquerychannelstringqueryComma separated channels (
Paid Search,Email).utm_sourcestringqueryutm_mediumstringqueryutm_campaignstringqueryreferrerstringqueryComma separated referring domains.
countrystringqueryComma separated ISO country codes.
languagestringqueryscreenstringqueryComma separated resolutions (
1920x1080).entry_pagestringqueryExact path of the session's first pageview.
exit_pagestringqueryvisitorstringquerynew (first session of the visitor) or returning.person_propertystringqueryWith
person_value: only sessions whose person has this property equal to the value.person_valuestringqueryexperiencestringqueryExperience bucket:
happy, neutral or unhappy (N-DXA-1).article_readstringqueryArticle read-through:
finished or abandoned_headline (N-DXA-6).reader_typestringqueryReader 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[]requiredIn the order the pages were asked for.
Show child parameters
avg_experience_scorenumberMean experience score (0-100) of the page's sessions;
None without sessions.avg_scroll_depthnumberrequiredMean of each scrolling session's deepest scroll, 0 to 1.
clicking_sessionsintegerrequiredclicksintegerrequiredconversion_ratenumberconverted_sessionsintegerrequiredPage sessions that reached
goal; 0 without a goal.ctrnumberclicking_sessions / sessions.dead_clicksintegerrequiredfrustrated_sessionsintegerrequiredSessions with a rage, dead or other frustration signal on the page.
frustration_ratenumberrage_clicksintegerrequiredscroll_sessionsintegerrequiredsessionsintegerrequiredSessions with a pageview of the page.
unhappy_ratenumberunhappy_sessionsintegerrequiredPage sessions in the project's unhappy experience bucket.
urlstringrequiredfromstringrequiredgoalstringtostringrequired400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/heatmaps/confetti Scope insight:readParameters
channelstringqueryComma separated channels (
Paid Search,Email).utm_sourcestringqueryutm_mediumstringqueryutm_campaignstringqueryreferrerstringqueryComma separated referring domains.
countrystringqueryComma separated ISO country codes.
languagestringqueryscreenstringqueryComma separated resolutions (
1920x1080).entry_pagestringqueryExact path of the session's first pageview.
exit_pagestringqueryvisitorstringquerynew (first session of the visitor) or returning.person_propertystringqueryWith
person_value: only sessions whose person has this property equal to the value.person_valuestringqueryexperiencestringqueryExperience bucket:
happy, neutral or unhappy (N-DXA-1).article_readstringqueryArticle read-through:
finished or abandoned_headline (N-DXA-6).reader_typestringqueryReader type:
single (1 article), few (2-3) or many (4+).project_idstringpathrequiredurlstringqueryrequiredbreakdownstringqueryrequiredchannel|referrer|device|country|browser|os|visitor|event:<key>|person:<key>
dotsintegerquerysampled dots, default 5000, at most 20000
viewportstringqueryfromstringquerytostringquerycohortstringquerymin_widthintegerquerymax_widthintegerqueryflagstringqueryvariantstringqueryCode 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
GET
https://lucidace.com /v1/projects/{project_id}/heatmaps/coverage Scope insight:readPages 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_idstringpathrequireddaysintegerquery1..=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