HeatmapsScroll-depth curve for one page

Scroll-depth curve for one page

How many sessions still had eyes on each band of the page, cumulative from the deepest band upward — so sessions_reached reads "at least this far down".

Depth is max scroll y + viewport height, because a visitor who never scrolled still saw one viewport. That makes the depth_px: 0 band equal to every measured session, i.e. the denominator.

One measurement per session per page, taken when the visitor leaves the page. Sessions whose final beacon never landed are absent: this is a curve over sessions we measured, not over all pageviews.

curl -X GET "https://mythic-analytics.gulp.workers.dev/client/v1/data/heatmap/scroll?location_id=example_string&url=acme.com%2Fpricing&date_from=2024-12-25T10%3A00%3A00Z&date_to=2024-12-25T10%3A00%3A00Z&viewport_min=42&viewport_max=42&band=100&device_type=mobile&utm_source=facebook&utm_medium=cpc&utm_campaign=example_string&country=USA&segment_id=example_string" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "success": true,
  "data": {
    "page": "acme.com/pricing",
    "band": 100,
    "sessions": 1204,
    "page_height": 5200,
    "bands": [
      {
        "depth_px": 2000,
        "sessions_reached": 602,
        "sessions_total": 1204,
        "reached_pct": 0.5,
        "page_height": 5200
      }
    ]
  }
}
GET
/client/v1/data/heatmap/scroll
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Agency key (ak_) or location secret key (sk_). Scoped keys (mcp_) are accepted too and need heatmaps:read. See Using an mcp_ key over HTTP.

Agency key (ak_) or location secret key (sk_). Scoped keys (mcp_) are accepted too and need heatmaps:read. See Using an mcp_ key over HTTP.
query
location_idstring

Required with an agency key (ak_); ignored with a location key (sk_). Can also be sent as the X-Location-Id header.

query
date_fromstring
Format: date-time
query
date_tostring
Format: date-time
query
bandinteger

Band height in px.

query
device_typestring

Session device — mobile, desktop, tablet. Resolved against the same session data /data/sessions reports, so the two agree.

query
utm_sourcestring

Session source. Includes the referrer fallback: an untagged but referred session reads as google.com, not blank.

query
segment_idstring

Stored segment. Scopes to sessions whose visitor is a member; membership resolves through the identity graph, so a person-level segment catches rows captured under any identity they used.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Agency key (ak_) or location secret key (sk_). Scoped keys (mcp_) are accepted too and need heatmaps:read. See Using an mcp_ key over HTTP.

Query Parameters

location_idstring

Required with an agency key (ak_); ignored with a location key (sk_). Can also be sent as the X-Location-Id header.

urlstring
Required
Example:
acme.com/pricing
bandinteger

Band height in px.

device_typestring

Session device — mobile, desktop, tablet. Resolved against the same session data /data/sessions reports, so the two agree.

Example:
mobile
utm_sourcestring

Session source. Includes the referrer fallback: an untagged but referred session reads as google.com, not blank.

Example:
facebook
utm_mediumstring
Example:
cpc
segment_idstring

Stored segment. Scopes to sessions whose visitor is a member; membership resolves through the identity graph, so a person-level segment catches rows captured under any identity they used.

Responses

successboolean
dataobject