Skip to main content
Version: 24.05

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 seen in its action events.

Authentication​

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

Permissions​

  • Requires Read permission for the Heatmaps feature (heatmaps) in the target app.

Request Parameters​

ParameterTypeRequiredDescription
api_keyStringYes (or auth_token)API key authentication
auth_tokenStringYes (or api_key)Auth token authentication
app_idStringYesID of the app.

Examples​

Example: Read segments and domains​

curl "https://your-server.com/o/heatmaps/domains?api_key=YOUR_API_KEY&app_id=YOUR_APP_ID"

Response​

Success Response​

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

Response Fields​

FieldTypeDescription
segmentsObjectView segments of the app. Each key is a segment name and its value is the list of segment values. Empty when the app has none.
domainsArrayDomains seen in action events. Empty when none are known or when Drill is not available.
Implementation details

Database Collections

CollectionUsed forData touched by this endpoint
countly.viewsView configurationReads the segments of the app.
countly_drill.drill_metaDrill metadataReads the known domains of action events.