GA4 report
ga_run_reportRun Google Analytics 4 reports with specified dimensions, metrics, filters, and optional date-range comparisons to extract SEO and traffic insights.
Instructions
Run a Google Analytics 4 Data API report. Common dimensions: date, pagePath, landingPage, sessionDefaultChannelGroup, sessionSource, sessionMedium, country, deviceCategory, eventName. Common metrics: sessions, activeUsers, totalUsers, newUsers, screenPageViews, engagementRate, averageSessionDuration, bounceRate, conversions, eventCount, keyEvents. Use ga_get_metadata to discover more. Optionally add a comparison date range.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| endDate | No | yesterday | |
| metrics | No | ||
| orderBy | No | Sort order. Defaults to first metric descending. | |
| startDate | No | YYYY-MM-DD, 'today', 'yesterday' or 'NdaysAgo'. | 28daysAgo |
| dimensions | No | ||
| propertyId | Yes | GA4 property ID, e.g. '123456789' or 'properties/123456789'. Use ga_list_properties to discover it. | |
| metricFilter | No | Raw GA4 FilterExpression JSON. Overrides metricFilters when given. | |
| keepEmptyRows | No | ||
| metricFilters | No | Simple AND-ed metric filters (applied after aggregation). | |
| compareEndDate | No | ||
| dimensionFilter | No | Raw GA4 FilterExpression JSON. Overrides dimensionFilters when given. | |
| compareStartDate | No | Optional second date range start; adds a 'dateRange' dimension to rows. | |
| dimensionFilters | No | Simple AND-ed dimension filters. |