heatmaps
POST
https://lucidace.com /v1/projects/{project_id}/heatmaps/zones Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
namestringrequiredurlstringPage path or URL; stored normalized like the heatmap points.
x0numberrequiredLeft and right edges as ratios of the page width,
0 <= x0 < x1 <= 1.x1numberrequiredy0integerrequiredTop and bottom edges in document pixels,
0 <= y0 < y1.y1integerrequired{
"name": "string",
"url": "string",
"x0": 0,
"x1": 0,
"y0": 0,
"y1": 0
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/heatmaps/zones" \
-H "Content-Type: application/json" \
-d '{"name":"string","url":"string","x0":0,"x1":0,"y0":0,"y1":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"id": "string",
"name": "string",
"updated_at": "2024-01-01T00:00:00Z",
"url": "string",
"x0": 0,
"x1": 0,
"y0": 0,
"y1": 0
}Schema
created_atstringrequiredcreated_bystringidstringrequirednamestringrequiredupdated_atstringrequiredurlstringrequiredNormalized page path the zone belongs to.
x0numberrequiredLeft edge as a ratio of the page width.
x1numberrequiredy0integerrequiredTop and bottom edge in document pixels.
y1integerrequired400
403
404
409 The page already has a zone with that name
GET
https://lucidace.com /v1/projects/{project_id}/heatmaps/zones/report Scope insight:readParameters
project_idstringpathrequiredurlstringqueryrequiredfromstringquerytostringqueryviewportstringquerycohortstringquerygoalstringqueryconversion event for the after-click metrics
revenue_propertystringquerygoal-event property summed as revenue
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+).Code samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/heatmaps/zones/report?url=<url>"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"clicking_sessions": 0,
"from": "2024-01-01T00:00:00Z",
"page_height_px": 0,
"scroll_sessions": 0,
"to": "2024-01-01T00:00:00Z",
"total_clicks": 0,
"url": "string",
"zones": [
{
"attention_ms": 0,
"click_recurrence": 0,
"click_sessions": 0,
"click_share": 0,
"clicks": 0,
"conversion_rate_after_click": 0,
"converted_click_sessions": 0,
"dead_clicks": 0,
"exposure_rate": 0,
"hover_points": 0,
"hover_rate": 0,
"hover_sessions": 0,
"rage_clicks": 0,
"repeat_click_sessions": 0,
"revenue_per_click": 0,
"scroll_reach": {
"full_view_rate": 0,
"fully_viewed_sessions": 0,
"reach_rate": 0,
"reached_sessions": 0
},
"time_to_first_click_ms": 0,
"zone": {
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"id": "string",
"name": "string",
"updated_at": "2024-01-01T00:00:00Z",
"url": "string",
"x0": 0,
"x1": 0,
"y0": 0,
"y1": 0
}
}
]
}Schema
clicking_sessionsintegerrequiredfromstringrequiredpage_height_pxintegerMedian document height seen by the scroll points, px.
scroll_sessionsintegerrequiredtostringrequiredtotal_clicksintegerrequiredurlstringrequiredzonesZoneReport[]requiredShow child parameters
attention_msintegerVisible time in the zone, estimated from the
$attention bands; null without page height or attention data.click_recurrencenumberClicks per clicking session.
click_sessionsintegerrequiredclick_sharenumberShare of all clicks on the page.
clicksintegerrequiredconversion_rate_after_clicknumberconverted_click_sessions / click_sessions.converted_click_sessionsintegerClicking sessions that converted (
goal); null without a goal.dead_clicksintegerrequiredexposure_ratenumberShare of scrolling sessions that had the zone in view (its top reached).
hover_pointsintegerrequiredMouse-move points inside the zone and the sessions that hovered it.
hover_ratenumberhover_sessions / scroll_sessions.hover_sessionsintegerrequiredrage_clicksintegerrequiredrepeat_click_sessionsintegerrequiredSessions that clicked the zone at least twice.
revenue_per_clicknumberRevenue of the converting clicking sessions per click; null without
revenue_property.scroll_reachobjectrequiredShow child parameters
full_view_ratenumberfully_viewed_sessionsintegerrequired... and the bottom of it.
reach_ratenumberreached_sessions / scroll_sessions.reached_sessionsintegerrequiredScrolling sessions that reached the top of the zone.
time_to_first_click_msintegerMedian ms from the session's first interaction on the page to its first click in the zone.
zoneobjectrequiredShow child parameters
created_atstringrequiredcreated_bystringidstringrequirednamestringrequiredupdated_atstringrequiredurlstringrequiredNormalized page path the zone belongs to.
x0numberrequiredLeft edge as a ratio of the page width.
x1numberrequiredy0integerrequiredTop and bottom edge in document pixels.
y1integerrequired400
404
503
PUT
https://lucidace.com /v1/projects/{project_id}/heatmaps/zones/{id} Scope insight:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
namestringrequiredurlstringPage path or URL; stored normalized like the heatmap points.
x0numberrequiredLeft and right edges as ratios of the page width,
0 <= x0 < x1 <= 1.x1numberrequiredy0integerrequiredTop and bottom edges in document pixels,
0 <= y0 < y1.y1integerrequired{
"name": "string",
"url": "string",
"x0": 0,
"x1": 0,
"y0": 0,
"y1": 0
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/heatmaps/zones/{id}" \
-H "Content-Type: application/json" \
-d '{"name":"string","url":"string","x0":0,"x1":0,"y0":0,"y1":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Renames or moves the zone;
url is ignored (a zone stays on its page)400
403
404
409
DELETE
https://lucidace.com /v1/projects/{project_id}/heatmaps/zones/{id} Scope insight:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/heatmaps/zones/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
Updated