create_goal
Create a goal that counts sessions visiting a page, firing a custom event, or scrolling a page at least threshold percent (type scroll). Needs a write key and member access or higher.
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_id": "<site_id>",
"type": "<type>",
"value": "<value>"
},
"name": "create_goal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| type | Yes | ||
| value | Yes | Page path (wildcards allowed) or event name | |
| site_id | Yes | Site id from list_sites | |
| threshold | No | For scroll goals: percentage of the page scrolled, e.g. 75 |