matomo_add_goal
Add a new goal to a Matomo Analytics site by specifying tracking criteria like URL patterns or event attributes to measure conversions and user actions.
Instructions
Thêm một goal mới cho site
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": {
"siteId": "<siteId>",
"name": "<name>",
"description": "<description>",
"matchAttribute": "<matchAttribute>",
"pattern": "<pattern>",
"patternType": "<patternType>"
},
"name": "matomo_add_goal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | ID của site | |
| name | Yes | Tên của goal | |
| description | Yes | Mô tả của goal | |
| matchAttribute | Yes | Thuộc tính khớp (url, title, event, etc.) | |
| pattern | Yes | Mẫu khớp | |
| patternType | Yes | Loại mẫu (exact, contains, regex, etc.) |