Set a site's goals
analytics_set_goalsThe conversions to count, replacing the site's goals: a page reached ({"name": "Order placed", "page": "/checkout/done"}) or a custom event, optionally with props ({"name": "Pro signup", "event": "Signup", "props": {"plan": "pro"}}). analytics_stats then shows each goal's visitors, conversions, conversion rate and revenue (from conecto("Purchase", {...}, {revenue: 49.9, currency: "USD"})). An empty list removes them. Free.
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": {
"site": "<site>",
"goals": "<goals>"
},
"name": "analytics_set_goals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | The site's domain (e.g. halversoncycle.example) or its site_id. | |
| goals | Yes |