ga4_get_report
Run a custom Google Analytics 4 report with any combination of dimensions and metrics. Specify property, dimensions, metrics, lookback period, and row limit to get the data you need.
Instructions
Run a custom GA4 report with any combination of dimensions and metrics.
Args: property_id: GA4 property ID (numeric). Leave empty to use GA4_PROPERTY_ID env var. dimensions: Comma-separated dimension names (e.g., "date", "sessionSource,sessionMedium", "pagePath", "country", "deviceCategory"). Default: "date". metrics: Comma-separated metric names (e.g., "sessions,totalUsers,screenPageViews", "bounceRate,averageSessionDuration,conversions"). Default: "sessions,totalUsers,screenPageViews". days: Lookback period in days (default: 28). row_limit: Max rows to return (default: 20, max: 100).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| metrics | No | sessions,totalUsers,screenPageViews | |
| row_limit | No | ||
| dimensions | No | date | |
| property_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |