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.
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 |