Turn on site analytics
enable_analyticsTurn on the site's built-in visitor analytics (visitors, page views, traffic sources, devices). No outside account is needed: the platform sets up collection for the site. If it was turned off before, the same connection resumes with its history. Collection starts once the site is next published, and reports usually fill in within 24-48 hours. custom_domain (optional) is the site's address, e.g. https://example.com, when it differs from its published address.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site, from list_sites | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| custom_domain | No | The site's public address, when it has its own domain |