get_realtime_data
Fetch real-time Google Analytics 4 data. Provide property ID, metrics, and optional dimensions to analyze live traffic.
Instructions
Get real-time analytics data from GA4
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": {
"propertyId": "<propertyId>",
"metrics": "<metrics>"
},
"name": "get_realtime_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| propertyId | Yes | GA4 property ID | |
| dimensions | No | Optional array of dimension names | |
| metrics | Yes | Array of metric names for real-time data |