v24
COMPLIANCE
Analytics
Allows to add a tab with Extension analytics data to the Event's analytics page. This feature is enabled by providing corresponding flag in instance handshake response.
get
https://example-extension.mic.io
/mic/:mic_instance_id/projects/:project_id/events/:event_id/analytics_tab
Analytics

Example

cURL
Response
1
curl --request GET \
2
--url https://example-extension.mic.io/mic/c068dd33-46c3-4789-a619-b14e4bcbe990/projects/da34516f-00af-435e-bd03-ab1720755dda/events/a8552581-a10f-4fa7-85e9-7c9c82766be7/analytics_tab \
3
--header 'Content-Type: application/vnd.api+json'
Copied!
1
{
2
"id": "demographics-audience",
3
"name": "Audience",
4
"final": false,
5
"categories": [
6
{
7
"name": "Age breakdown",
8
"items": [
9
{
10
"type": "string",
11
"label": "Age < 18",
12
"value": "30%"
13
},
14
{
15
"type": "string",
16
"label": "Age 19 - 55",
17
"value": "50%"
18
},
19
{
20
"type": "string",
21
"label": "Age > 56",
22
"value": "20%"
23
}
24
]
25
},
26
{
27
"name": "Gender breakdown",
28
"items": [
29
{
30
"type": "string",
31
"label": "Male",
32
"value": "63%"
33
},
34
{
35
"type": "string",
36
"label": "Female",
37
"value": "37%"
38
}
39
]
40
}
41
]
42
}
43
Copied!

Response parameters

categories define data sections and items define actual data. type defines how the data should be presented. Supported types are:
categories
Data sections.
items
Actual analytics data. type defines how the data should be presented and the only type currently supported is string, which will display data as is.
final
Informs that tab content will not change anymore and can be cached by the platform to be available anytime later without hitting the Extension.