ga4_run_realtime_report
Fetch real-time Google Analytics 4 data on active users and on-site activity from the past 30 minutes to see who is on your site right now.
Instructions
Run a Google Analytics 4 realtime report of active users and on-site activity from the last thirty minutes. Use when the user asks who is on the site right now. Call ga4_run_report for any date range older than that live window, and call ga4_get_metadata if a realtime metric name is rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metrics | Yes | Realtime metrics (e.g., ["activeUsers", "screenPageViews", "conversions"]) | |
| dimensions | No | Realtime dimensions (e.g., ["country", "city", "unifiedScreenName"]) | |
| property_id | Yes | GA4 property ID (e.g., "123456" or "properties/123456") |