Analytics
List goals
Returns a list all goals available for a website. Please note that each request must be authenticated.
get/api/analytics/v1/manage/goals/
Request
- Base URLhttps://example.piwik.pro
- AuthOAuth 2Client credentialsToken URL/auth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
website_idstring uuid required
ID of the website.
limitinteger
Number of rows to return.
offsetinteger
Number of rows to skip before beginning to return rows.
Response
OK
Example response
{
"meta": {
"total": 1
},
"data": [
{
"id": "dde2dc68-b6bb-45ee-9ac2-868b6181e33f",
"attributes": {
"website_id": "dde2dc68-b6bb-45ee-9ac2-868b6181e33f",
"name": "User entered contact page",
"description": "Goal is triggered when user enters contact page",
"trigger": "url",
"pattern_type": "contains",
"pattern": "Contact",
"revenue": "10.22"
}
}
]
}Changes
No recorded changes to this operation across all 2 revisions of this API.