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>
POSThttps://lucidace.com/v1/projects/{project_id}/heatmaps/zonesScope insight:write

Parameters

project_idstringpathrequired

Request body

application/json
namestringrequired
urlstring
Page path or URL; stored normalized like the heatmap points.
x0numberrequired
Left and right edges as ratios of the page width, 0 <= x0 < x1 <= 1.
x1numberrequired
y0integerrequired
Top 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_atstringrequired
created_bystring
idstringrequired
namestringrequired
updated_atstringrequired
urlstringrequired
Normalized page path the zone belongs to.
x0numberrequired
Left edge as a ratio of the page width.
x1numberrequired
y0integerrequired
Top and bottom edge in document pixels.
y1integerrequired
400
403
404
409 The page already has a zone with that name
GEThttps://lucidace.com/v1/projects/{project_id}/heatmaps/zones/reportScope insight:read

Parameters

project_idstringpathrequired
urlstringqueryrequired
fromstringquery
tostringquery
viewportstringquery
cohortstringquery
goalstringquery
conversion event for the after-click metrics
revenue_propertystringquery
goal-event property summed as revenue
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/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_sessionsintegerrequired
fromstringrequired
page_height_pxinteger
Median document height seen by the scroll points, px.
scroll_sessionsintegerrequired
tostringrequired
total_clicksintegerrequired
urlstringrequired
zonesZoneReport[]required
Show child parameters
attention_msinteger
Visible time in the zone, estimated from the $attention bands; null without page height or attention data.
click_recurrencenumber
Clicks per clicking session.
click_sessionsintegerrequired
click_sharenumber
Share of all clicks on the page.
clicksintegerrequired
conversion_rate_after_clicknumber
converted_click_sessions / click_sessions.
converted_click_sessionsinteger
Clicking sessions that converted (goal); null without a goal.
dead_clicksintegerrequired
exposure_ratenumber
Share of scrolling sessions that had the zone in view (its top reached).
hover_pointsintegerrequired
Mouse-move points inside the zone and the sessions that hovered it.
hover_ratenumber
hover_sessions / scroll_sessions.
hover_sessionsintegerrequired
rage_clicksintegerrequired
repeat_click_sessionsintegerrequired
Sessions that clicked the zone at least twice.
revenue_per_clicknumber
Revenue of the converting clicking sessions per click; null without revenue_property.
scroll_reachobjectrequired
Show child parameters
full_view_ratenumber
fully_viewed_sessionsintegerrequired
... and the bottom of it.
reach_ratenumber
reached_sessions / scroll_sessions.
reached_sessionsintegerrequired
Scrolling sessions that reached the top of the zone.
time_to_first_click_msinteger
Median ms from the session's first interaction on the page to its first click in the zone.
zoneobjectrequired
Show child parameters
created_atstringrequired
created_bystring
idstringrequired
namestringrequired
updated_atstringrequired
urlstringrequired
Normalized page path the zone belongs to.
x0numberrequired
Left edge as a ratio of the page width.
x1numberrequired
y0integerrequired
Top and bottom edge in document pixels.
y1integerrequired
400
404
503
PUThttps://lucidace.com/v1/projects/{project_id}/heatmaps/zones/{id}Scope insight:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
namestringrequired
urlstring
Page path or URL; stored normalized like the heatmap points.
x0numberrequired
Left and right edges as ratios of the page width, 0 <= x0 < x1 <= 1.
x1numberrequired
y0integerrequired
Top 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)

Same as 201 · POST /v1/projects/{project_id}/heatmaps/zones

400
403
404
409
DELETEhttps://lucidace.com/v1/projects/{project_id}/heatmaps/zones/{id}Scope insight:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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