account | array (also accepts a comma-separated string) | No | - | The GA4 property to read. Only one property at a time. |
metrics | string or array of string | No | - | Realtime metrics, default [‘activeUsers’]. Options: activeUsers, eventCount, keyEvents, screenPageViews. |
dimensions | string or array of string | No | - | Realtime dimensions; none (the default) returns property totals. Options: country, countryId, city, cityId, deviceCategory, platform, appVersion, unifiedScreenName (page title or app screen name), eventName, minutesAgo (one row per minute, ‘00’ is the current minute), audienceId, audienceName, audienceResourceName, streamId, streamName, or a user-scoped custom dimension as ‘customUser:<parameter_name>’. Event-scoped custom dimensions are not available in realtime reports. |
start_minutes_ago | integer | No | - | Start of the window, in minutes before now. Default 29, the full 30 minutes Google keeps for standard properties (up to 59 on GA4 360). |
end_minutes_ago | integer | No | - | End of the window, in minutes before now. Default 0 (now). Example: start 4 and end 0 cover the last 5 minutes. |
filters | array of FilterItem | No | - | Filters on the realtime metrics and dimensions above, combined with AND, e.g. [{‘field’: ‘unifiedScreenName’, ‘operator’: ‘CONTAINS’, ‘value’: ‘Checkout’}]. |
orders | array of OrderItem | No | - | Sort order, default the first metric descending. Use minutesAgo ASC for a minute-by-minute timeline. |
limit | integer | No | - | Maximum rows to return, default 10,000, up to 250,000. |