GA4 realtime events
get_ga4_realtime_eventsUse this when the user wants to confirm that an event just fired, such as a test booking or purchase, or asks which events GA4 is receiving right now. Reads GA4 Realtime for the property linked to the site: eventName, eventCount and keyEvents for the last 30 minutes, sorted by eventCount, highest first (ties by eventName, A to Z). Events appear seconds after GA4 receives them. Pass eventName (e.g. purchase) to check one event. Not for conversions older than 30 minutes, revenue, pages or traffic sources: use get_ga4_key_events. These are unprocessed counts for the whole GA4 property, because Realtime cannot be narrowed to a hostname. When the property is linked to several sites on different hosts, sharedWithSites lists the others, and an account the site was shared with is refused. An empty result does not by itself mean tracking is broken. Returns notConfigured when Google Analytics is not connected or no GA4 property is linked.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"siteUrl": "<siteUrl>"
},
"name": "get_ga4_realtime_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of events to return. | |
| siteUrl | Yes | ||
| eventName | No | Only count this event (e.g. purchase). Omit to list every event received. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | No | ||
| hint | No | ||
| events | No | ||
| reason | No | ||
| thenBy | No | ||
| account | No | ||
| listKey | No | Name of the top-level field that holds the rows sortedBy describes. | |
| siteUrl | No | ||
| nextStep | No | ||
| ordering | No | ||
| sortedBy | No | ||
| eventName | No | ||
| siteScope | No | ||
| sortOrder | No | ||
| thenOrder | No | ||
| truncated | No | ||
| dataSource | No | ||
| propertyId | No | ||
| emptyBecause | No | ||
| methodLimits | No | ||
| notConfigured | No | ||
| windowMinutes | No | ||
| reauthRequired | No | ||
| matchedRowCount | No | ||
| sharedWithSites | No |