ga4_realtime_report
Generates a Google Analytics 4 realtime report for the last 30 minutes using selected dimensions, metrics, and filters to monitor active users and events as they occur.
Instructions
Realtime report for the last 30 minutes (Data API runRealtimeReport). Realtime has its own, smaller set of fields: dimensions like eventName, platform, country, city, unifiedScreenName, appVersion, minutesAgo; metrics activeUsers, eventCount, screenPageViews, keyEvents. Requires: Google Analytics Data API (analyticsdata.googleapis.com) enabled on the quota project; Lector (Viewer) en la propiedad de GA4. If it fails for access, the error explains how to fix it; ga4_check_access checks everything at once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| metrics | No | Realtime metric API names | |
| property | No | Saved property name (see ga4_list_properties). Defaults to the default property. | |
| dimensions | No | Realtime dimension API names | |
| metric_filter | No | Data API FilterExpression for metrics, e.g. {"filter":{"fieldName":"totalUsers","numericFilter":{"operation":"GREATER_THAN","value":{"int64Value":"100"}}}} | |
| minutes_ago_end | No | Window end, in minutes ago (0 = now) | |
| dimension_filter | No | Data API FilterExpression for dimensions, e.g. {"filter":{"fieldName":"eventName","stringFilter":{"matchType":"BEGINS_WITH","value":"Checkout_"}}} | |
| minutes_ago_start | No | Window start, in minutes ago (0–29) |