Skip to main content
Version: 25.03

Heatmaps - Domains

Enterprise

This endpoint is part of Countly Enterprise. To get access, contact sales or compare versions. Existing customers can reach the support portal with questions.

Endpoint​

/o/heatmaps/domains

Overview​

Returns the view segments of an app and the domains that heatmap interaction events were recorded on.

Authentication​

Pass api_key or auth_token as a query parameter, or send countly-token as a header. See Authentication.

Permissions​

Requires Read permission on the heatmaps feature.

Request Parameters​

ParameterTypeRequiredDescription
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.
app_idStringYesApp ID.

Examples​

Read segments and domains​

/o/heatmaps/domains?api_key=YOUR_API_KEY&app_id=6991c75b024cb89cdc04efd2

Response​

Success Response​

{
"segments": {
"platform": ["Desktop", "Mobile"]
},
"domains": ["example.com", "shop.example.com"]
}

Response Fields​

FieldTypeDescription
segmentsObjectView segments of the app. Each key is a segment name and its value is the list of that segment's values. Empty when the app has none.
domainsArrayDomains seen in [CLY]_action events of the app. Empty when none were recorded or Drill data is not available.

Error Responses​

  • 400
{
"result": "Missing parameter \"api_key\" or \"auth_token\""
}
  • 401
{
"result": "User does not have right"
}

Behavior​

  • Read-only. Nothing is modified.
Implementation details

Database Collections

CollectionUsed forData touched by this endpoint
countly.membersAuthentication and permission checkReads the member and permissions.
countly.viewsSegmentsReads the segment map of the app.
countly_drill.drill_events{hash} and countly_drill.drill_metaDomainsReads the domain segment values of the [CLY]_action event.