ga4_run_report
Run a read-only GA4 Data API report over a date range to reconcile configured GTM/GA4 events against actual reported event counts, flagging zero activity.
Instructions
Run a read-only GA4 Data API report for a property over a date range. Returns dimension/metric rows (e.g. event counts by eventName). Useful for reconciling configured GTM/GA4 events against events GA4 actually reports (zero reported activity for a configured event is a red flag). Read-only — never writes. Requires the analytics.readonly scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| property | Yes | GA4 property ID, e.g. "123456789" or "properties/123456789". | |
| dimensions | No | Dimension names, e.g. ["eventName","date"]. Max 9. Omit for a metric-only report. | |
| metrics | Yes | Metric names, e.g. ["eventCount","totalUsers"]. At least 1, max 10. | |
| startDate | No | Start date: YYYY-MM-DD, "NdaysAgo", "today", or "yesterday". | 7daysAgo |
| endDate | No | End date: YYYY-MM-DD, "NdaysAgo", "today", or "yesterday". | today |
| limit | No | Max rows to return (default 250). | |
| offset | No | Row offset for paging (default 0). | |
| orderByMetric | No | Metric name to order by (descending). Optional. |