ga4_run_report
Run Google Analytics 4 reports with intelligent query planning, supporting up to 10 metrics and 9 dimensions, plus automatic pagination for large result sets.
Instructions
Run a GA4 analytics report with intelligent query planning. Supports 52 metrics, 63 dimensions, auto-pagination. Use ga4://metrics and ga4://dimensions resources for available fields. Max 9 dimensions + 10 metrics per request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | Optional 0-based row offset for explicit pagination. | |
| endDate | No | End date YYYY-MM-DD or relative (today, yesterday) | |
| metrics | Yes | Metric keys (e.g., sessions, activeUsers, totalRevenue) | |
| orderBy | No | Metric or dimension key to sort by | |
| startDate | No | Start date YYYY-MM-DD or relative (7daysAgo, yesterday) | |
| datePreset | No | ||
| dimensions | No | Dimension keys (e.g., date, sessionSource, country) | |
| propertyId | Yes | GA4 property ID (numeric, e.g., 123456789) | |
| autoPaginate | No | When true, omit the limit so the GA4 client paginates through all rows using offset. | |
| orderDirection | No | DESC |