ga4_run_report
Run custom Google Analytics 4 (GA4) reports with flexible dimensions, metrics, and date ranges to extract the exact data you need for analysis.
Instructions
Run a custom GA4 report with flexible dimensions, metrics, and date ranges. Use ga4_get_metadata to discover available dimensions and metrics first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of rows to return (default: 100, max: 100000) | |
| offset | No | Row offset for pagination (default: 0) | |
| endDate | Yes | End date in YYYY-MM-DD format, or relative: "today", "yesterday" | |
| metrics | Yes | Metric names, e.g. ["activeUsers", "sessions", "screenPageViews", "bounceRate"] | |
| orderBys | No | Order-by specifications | |
| startDate | Yes | Start date in YYYY-MM-DD format, or relative: "today", "yesterday", "7daysAgo", "30daysAgo" | |
| dimensions | No | Dimension names, e.g. ["city", "country", "pagePath", "sessionSource"] | |
| propertyId | No | GA4 Property ID (numeric). If omitted, uses server-configured default. | |
| metricFilter | No | JSON string of a metric filter expression. Example: {"filter":{"fieldName":"activeUsers","numericFilter":{"operation":"GREATER_THAN","value":{"int64Value":"10"}}}} | |
| dimensionFilter | No | JSON string of a dimension filter expression. Example: {"filter":{"fieldName":"country","stringFilter":{"value":"United States"}}} |