Run GA4 report
ga4_run_reportRun a Google Analytics 4 report: metrics broken down by dimensions over a
date range, with optional filters, sorting and a comparison period.
total_rows is the full size of the result; page with offset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| metrics | Yes | Metric API names, e.g. sessions, totalUsers. | |
| end_date | No | YYYY-MM-DD, or today, yesterday, NdaysAgo. | yesterday |
| order_bys | No | Fields to sort by; prefix with '-' for descending, e.g. -sessions. | |
| dimensions | No | Dimension API names, e.g. date, sessionDefaultChannelGroup. | |
| start_date | No | YYYY-MM-DD, or today, yesterday, NdaysAgo. | 28daysAgo |
| property_id | Yes | GA4 property id, numeric (e.g. 123456789). See ga4_list_properties. | |
| metric_filter | No | GA4 Data API FilterExpression as JSON, e.g. {"filter": {"fieldName": "country", "stringFilter": {"value": "Spain"}}} or {"andGroup": {"expressions": [...]}}. | |
| compare_end_date | No | End of the optional comparison period. | |
| dimension_filter | No | GA4 Data API FilterExpression as JSON, e.g. {"filter": {"fieldName": "country", "stringFilter": {"value": "Spain"}}} or {"andGroup": {"expressions": [...]}}. | |
| compare_start_date | No | Start of an optional comparison period. Adds a dateRange column. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||