Analytics report
ga4_reportAny GA4 report (the Data API's runReport): pick dimensions and metrics, filters, date ranges and an optional comparison period. Examples: dimensions ["newVsReturning"] with metrics ["totalUsers", "sessions", "engagementRate"] for new vs returning; ["searchTerm"] with ["eventCount"] for on-site search terms; ["sessionSourceMedium"]; ["deviceCategory"], ["country"], ["contentGroup"]; ["date"] or ["isoYearIsoWeek"] for trends; ["eventName"] with ["keyEvents"] for conversions; ["itemName"] with ["itemRevenue", "itemsPurchased"] for e-commerce. Common metrics: sessions, totalUsers, newUsers, activeUsers, engagedSessions, engagementRate, bounceRate, averageSessionDuration, screenPageViews, keyEvents, totalRevenue, purchaseRevenue, transactions, eventCount.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Default 100, max 1000. | |
| filters | No | Dimension filters, all must match. Like {"field": "sessionDefaultChannelGroup", "match": "exact", "value": "Organic Search"} or {"field": "landingPage", "match": "begins_with", "value": "/blog/"}. | |
| metrics | Yes | 1 to 10 GA4 metric API names. | |
| end_date | No | YYYY-MM-DD. Default: yesterday. | |
| order_by | No | A metric or dimension to sort by, descending. Default: the first metric. | |
| property | No | GA4 property: its id (properties/123456 or 123456) or its name. Optional when one property is picked. | |
| dimensions | No | Up to 9 GA4 dimension API names. | |
| start_date | No | YYYY-MM-DD. Default: 28 days before end_date. | |
| compare_end_date | No | ||
| compare_start_date | No |