Get Visitor Analytics
get_analyticsThe published app's visitor analytics, as the editor's Analytics tab shows them: visitors, page views and a daily trend, top pages, referrers, countries, devices, browsers and custom events (trackEvent) over a date range. Read-only. Tracking setup and consent: get_guides('analytics').
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": {
"projectId": "<projectId>"
},
"name": "get_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, YYYY-MM-DD (UTC), included. Default: today. | |
| from | No | First day, YYYY-MM-DD (UTC). Default: the 30 days ending on to. | |
| limit | No | Rows per list (default 25). | |
| projectId | Yes |