v1
latestOpenAPI 3.0.22026-07-14304425350.6 KBAdmin Google Analytics
Run GA report
Run GA report.
Request body example:
{
"dimensions": ["appVersion", "date"],
"metrics": ["activeUsers", "newUsers"],
"start_date": "2023-06-26",
"end_date": "2023-07-26"
}
- Possible values for dimensions:
https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions
- Possible values for metrics:
https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics
- date_range must be a list of two dates: the first is the start date and the 2nd is the end date
The response will be a list of dicts. The keys of the dicts are the provided dimensions and metrics.
Response example
[
{
"appVersion": "2.0.0",
"date": "20230725",
"activeUsers": "11956",
"newUsers": "271"
},
{
"appVersion": "2.0.0",
"date": "20230724",
"activeUsers": "11849",
"newUsers": "343"
}
]
post/api/v5/admin/google-analytics/
Request body
Response
Successful Response
{"stackTrail":"paths:/api/v5/admin/google-analytics/:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}