matomo_add_goal
Add and configure a new goal for a Matomo site by specifying the site ID, name, description, match attribute, pattern, and pattern type to track specific user interactions.
Instructions
Thêm một goal mới cho site
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | Yes | Mô tả của goal | |
| matchAttribute | Yes | Thuộc tính khớp (url, title, event, etc.) | |
| name | Yes | Tên của goal | |
| pattern | Yes | Mẫu khớp | |
| patternType | Yes | Loại mẫu (exact, contains, regex, etc.) | |
| siteId | Yes | ID của site |
Input Schema (JSON Schema)
{
"properties": {
"description": {
"description": "Mô tả của goal",
"type": "string"
},
"matchAttribute": {
"description": "Thuộc tính khớp (url, title, event, etc.)",
"type": "string"
},
"name": {
"description": "Tên của goal",
"type": "string"
},
"pattern": {
"description": "Mẫu khớp",
"type": "string"
},
"patternType": {
"description": "Loại mẫu (exact, contains, regex, etc.)",
"type": "string"
},
"siteId": {
"description": "ID của site",
"type": "number"
}
},
"required": [
"siteId",
"name",
"description",
"matchAttribute",
"pattern",
"patternType"
],
"type": "object"
}