Install tracking
tracking_installSet up tracking for the site: the site key, the secret (shown only the first time, or with rotateSecret), the tracking.js script tag, the AI crawler middleware for the stack (nextjs, astro, nuxt, sveltekit, cloudflare; static sites get a log shipper note), and the default goals and funnel. Free on every plan; Free and Builder track 1 site, Growth 3. Ship it as the first PR and never commit the secret.
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": {
"domain": "<domain>",
"framework": "<framework>"
},
"name": "tracking_install"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | The site's hostname, e.g. example.com | |
| framework | Yes | The stack from the access audit; cloudflare for a Worker in front of a static site | |
| identityMode | No | cookieless (default) or attribution (needs consent where the law requires it) | |
| rotateSecret | No | Issue a new secret; the old one stops working | |
| activationEvent | No | The founder's activation event for the default funnel, e.g. first_project_created |