Configure site analytics
set_site_analyticsAdd site-wide analytics tracking by injecting a Plausible, Google Analytics, or custom script into every page's head, or disable to remove it.
Instructions
Add an analytics snippet to every page of the site's : Plausible or Google Analytics by id, or a raw custom . Re-renders the site. Set enabled:false to remove it.
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": {
"project": "<project>"
},
"name": "set_site_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Plausible domain or GA measurement id (e.g. G-XXXX). | |
| enabled | No | ||
| project | Yes | ||
| snippet | No | Raw <script> for provider 'custom'. | |
| provider | No |