Get statistics
Get data from the consent dashboard (aggregated data)
Get Statistics
GET
https://api-internal.commander1.com/v2/{siteId}/privacy/statistics
This endpoint allows you to get the data from the consent dashboard on a specific date range
Path Parameters
{siteId} (*required)
string
Account ID example: '12345'
Query Parameters
filter[sup_filters][location][]
integer
Data inside and outside of the EU 0 : Out of EU 1 : EU
filter[sup_filters][device][]
integer
Typical device types 0 : others 1 : mobile 2 : tablet 3 : desktop
token (*required)
string
Authentication token. Optional if the header "Authorization' parameter is used instead.
filter[begin_date] (*required)
string
example: '2021-04-30'
filter[end_date] (*required)
string
example: '2021-04-31'
How to get the token
For each API, you'll have to ask a token to your account manager or support team.
How to use additional parameters
Device filters
&filter[sup_filters][device][]=2&filter[sup_filters][device][]=3&filter[sup_filters][device][]=0
1 = Mobile
2 = Tablet
3 = Desktop
0 = Others
(in the example above, mobile device is excluded)
Location filters
&filter[sup_filters][location][]=0
1 = EU
0 = Out of EU
(in the example above, EU user's location is excluded)
Result example
Last updated
Was this helpful?