---
title: "Run GA report"
method: POST
path: "/api/v5/admin/google-analytics/"
tags: ["Admin Google Analytics"]
---

# Run GA report

`POST /api/v5/admin/google-analytics/`

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"
        }
    ]

## Request body

- RunGAReportInRequest
  - `dimensions` string[], required
  - `metrics` string[], required
  - `start_date` string, required
  - `end_date` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/pavlok/apis/pavlok-api-v5.md) · [All operations](https://skmtc.net/pavlok/apis/pavlok-api-v5/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pavlok/pavlok-api-v5/revisions/3d192098b1ac/schema)
