Skip to content

HeatmapService

Ingests touch interaction events from mobile clients and provides aggregated heatmap data for analytics.

MethodDescription
IngestTouchEventsRecord touch events from a device
QueryHeatmapDataQuery aggregated heatmap data
ListScreenshotsList screenshots for a screen
UploadScreenshotUpload a screenshot as a heatmap backdrop

Record touch interaction events (taps, scrolls, action clicks) from the mobile app.

Authorization: Authenticated user

FieldTypeDescription
eventsTouchEvent[]Batch of touch events. Max 500 per request.
FieldTypeDescription
ingested_countint32Number of events ingested.
FieldTypeDescription
screen_namestringScreen identifier. Max 200 characters.
xfloatContent-relative X coordinate (0.0–1.0).
yfloatContent-relative Y coordinate (0.0–1.0).
timestampTimestampWhen the event occurred.
campaign_idstringAssociated campaign ID.
event_typeTouchEventTypeType of event (TAP, SCROLL, ACTION_CLICK).

Query aggregated heatmap data for a screen.

Authorization: Requires VIEW_HEATMAPS permission

FieldTypeDescription
screen_namestringScreen to query.
campaign_idstringFilter by campaign ID.
modeHeatmapModeAggregation mode (ALL_USERS or PER_USER).
user_idstringFilter by user ID (for PER_USER mode).
event_typesTouchEventType[]Filter by event type.
FieldTypeDescription
data_pointsHeatmapDataPoint[]Aggregated heatmap data points.
user_touch_countsUserTouchCount[]Per-user touch counts (PER_USER mode).

List uploaded screenshots for a screen.

Authorization: Requires VIEW_HEATMAPS permission

FieldTypeDescription
screen_namestringScreen name to list screenshots for.
FieldTypeDescription
screenshotsScreenScreenshot[]List of screenshots.

Upload a screenshot image as a heatmap backdrop.

Authorization: Requires MANAGE_HEATMAPS permission

FieldTypeDescription
screen_namestringScreen the screenshot is for.
image_databytesScreenshot image data (PNG).
widthint32Image width in pixels.
heightint32Image height in pixels.
FieldTypeDescription
screenshotScreenScreenshotThe uploaded screenshot metadata.
ValueDescription
ALL_USERSAggregate data across all users
PER_USERShow data grouped by individual user
ValueDescription
TAPUser tapped the screen
SCROLLUser scrolled content
ACTION_CLICKUser clicked an action button