Real-time Data
realtime_dataRetrieve real-time Google Analytics data on current active users and activity. Supports dimensions and metrics for live traffic analysis.
Instructions
Get real-time analytics data for current active users and activity
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>"
},
"name": "realtime_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| propertyId | Yes | Google Analytics property ID (e.g., 123456789). Required for all queries. | |
| dimensions | No | Dimensions for real-time data (e.g., country, city, pagePath) | |
| metrics | No | Real-time metrics (default: activeUsers) | |
| limit | No | Limit number of results |