Preview a goal
analytics_goal_previewEvaluates an unsaved event or page matcher without saving it. Completions count matching events; conversion rate is unique anonymous visitors divided by all visitors with recorded activity in the window.
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": {
"projectId": "<projectId>",
"from": "<from>",
"to": "<to>",
"match": "<match>"
},
"name": "analytics_goal_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| match | Yes | ||
| toTime | No | ||
| fromTime | No | ||
| timezone | No | ||
| projectId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | ||
| trend | Yes | ||
| people | Yes | ||
| meaning | No | ||
| preview | Yes | ||
| projectId | Yes | ||
| definition | Yes | ||
| completions | Yes | ||
| totalVisitors | No | ||
| conversionRate | Yes |