Run GA4 Realtime Report
ga4_run_realtime_reportPull current Google Analytics 4 data for the last 30 minutes. Get active users, page views, and other realtime metrics by country, screen, or other dimensions.
Instructions
Run a Google Analytics 4 realtime report, covering roughly the last 30 minutes of activity.
Args:
connection (string): Name of a configured Google connection
property_id (string): GA4 property ID (from ga4_list_properties)
dimensions (string[]): Realtime dimension API names, e.g. ["country", "unifiedScreenName"]
metrics (string[]): Realtime metric API names, e.g. ["activeUsers", "screenPageViews"]
limit (number): Max rows to return (default 20, max 250)
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Note: only a subset of GA4 dimensions/metrics support realtime reporting — see https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema
Use when: "How many people are on the site right now?" or "What pages are active users viewing at this moment?" Don't use when: You need historical trends (use ga4_run_report instead).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| metrics | Yes | ||
| connection | Yes | ||
| dimensions | Yes | ||
| property_id | Yes | ||
| response_format | No | markdown |