Get website analytics
get_site_analyticsGet analytics for one website: visitors and views across all its pages, top traffic sources, a per-page breakdown, and total leads and revenue. For a single standalone page use get_page_analytics instead.
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": {
"siteId": "<siteId>"
},
"name": "get_site_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | The site to fetch analytics for (id from list_sites). | |
| source | No | Optional: restrict to one traffic source, e.g. "google.com". Use "Direct" for visits with no referrer. Values come from the trafficSources list in an unfiltered call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| leads | Yes | Form submissions. Always present; zeroed if none. | |
| siteId | Yes | ||
| revenue | Yes | ||
| traffic | Yes | ||
| pageCount | Yes | Non-archived pages in the site. |