---
title: "Preview report data"
method: POST
path: "/googleanalytics4/report/preview"
tags: ["Google analytics 4 reports"]
---

# Preview report data

`POST /googleanalytics4/report/preview`

## Query parameters

- `searchTerm` string
- `limit` integer
- `offset` integer

## Request body

- Ga4ReportCreateModel — Model used to create a GA4 report with.
  - `Name` string — Name of the report.
  - `PropertyName` string — Name of the property the report gets its data from.
  - `MetricNames` string[] — Names of the metrics read from the property when running the report.
  - `Filters` Ga4ReportFilterUpdateModel[] — Dimension Filters for filtering report data. Max 3 unique filters.
    - `DimensionName` string — The dimension used for filtering. (‘hostName', 'language' or 'languageCode').
    - `Value` string — Filter value
  - `NrOfDaysBack` integer — How many days worth of data should be taken into account.
  - `MappingDimensionName` string — The name of the dimension used to map to an attribute.
  - `MappingAttributeId` integer — The ID of the attribute to which the dimension gets mapped.
  - `RegexTemplate` string — Regex template used to get a substring of a URL. This substring is matched to the chosen mapping attribute. Only applicable to reports using the page views metric.

## Response `200`

The GA4 report preview

- ReportDataModel
  - `DimensionHeader` string
  - `MetricHeaders` string[]
  - `TotalRows` integer
  - `Rows` ReportDataItemModel[]
    - `DimensionValue` string
    - `MetricValues` string[]
    - `ArticleNumbers` string[]

---

[API](https://skmtc.net/tweakwise/apis/frontend-api.md) · [All operations](https://skmtc.net/tweakwise/apis/frontend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tweakwise/frontend-api/revisions/9bd1e2b3633f/schema)
