GA4 report
ga4_reportRun GA4 data reports to break down traffic, conversions or revenue by dimensions over a date range, returning top rows, totals and metric definitions.
Instructions
Run a Google Analytics 4 report (Data API runReport): traffic, conversions or revenue split by any dimensions over a date range. Returns the top rows ({"rows": [{dimension: value, metric: number}]}), "totals" over every row, "row_count" and "truncated", the unit and definition of each metric under "metrics", the currency, and a "date_range" resolved to calendar dates in the property's timezone with "data_complete". Use ga4_realtime for the last 30 minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows returned (1 to 1000); totals always cover every row | |
| metrics | No | GA4 API metric names, e.g. sessions, totalUsers, ecommercePurchases, purchaseRevenue, keyEvents | |
| end_date | No | YYYY-MM-DD, NdaysAgo, yesterday or today | yesterday |
| dimensions | No | GA4 API dimension names, e.g. sessionDefaultChannelGroup, landingPage, sessionSource, yearMonth, itemName | |
| start_date | No | YYYY-MM-DD, NdaysAgo, yesterday or today | 28daysAgo |
| property_id | No | Numeric GA4 property id, as listed by ga4_properties; empty uses the configured GA4_PROPERTY_ID | |
| channel_group | No | Optional exact filter on sessionDefaultChannelGroup, e.g. 'Organic Search'; empty for all channels |