Change a page or link goal
update_goal_definitionChanges a goal's pattern: path, link host, button text, form or file, as its kind allows (its name and kind never change). Reports recount past visits at once. Requires the write scope.
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": {
"id": "<id>"
},
"name": "update_goal_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The goal's id from list_goal_definitions (gd_…). | |
| file | No | download only: a file name (pricing.pdf, exact) or an extension (.pdf: any file with it). | |
| form | No | form only: the form's id or name attribute, exact, e.g. signup. | |
| host | No | outbound only: the other site, e.g. stripe.com (subdomains included). | |
| path | No | Page path pattern, e.g. /pricing, /blog/* (one segment) or /docs/** (any depth); letter case is ignored. For outbound, optional: the path on the other site. | |
| text | No | click only: the button text, exact but any letter case, e.g. Start free trial. | |
| website_id | No | Website ID from list_websites (the data-site-id value in the tracking script). |