Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations on different resources, including annotations. Specifically, for the 'Delete Annotation' operation under the 'Annotation' resource, it deletes an annotation by its note ID. The node supports a wide range of Matomo API methods, allowing users to manage analytics data, annotations, experiments, and more. It is useful for automating Matomo analytics tasks such as managing annotations, fetching reports, and updating configurations.

Use Case Examples

  1. Deleting an annotation by specifying its note ID to remove outdated or incorrect notes from Matomo.
  2. Fetching all annotations for a site and period to review user comments or notes.

Properties

Name Meaning
queryParameters Collection of query parameters to customize the API request, such as filtering or specifying IDs.
requestBody JSON body for POST/PUT/PATCH requests, used to send data when required by the API method.

Output

JSON

  • Status Code - Indicates the HTTP status code or response status from the API call
  • json - Parsed JSON response from the Matomo API, containing operation results or data

Dependencies

  • Matomo API credentials including domain URL and authentication token

Troubleshooting

  • Ensure that the Matomo domain and authentication token are correctly configured in the node credentials; missing these will cause errors.
  • Verify that the note ID provided for deleting an annotation exists and is correct to avoid 'not found' errors.
  • Check the HTTP method used matches the API endpoint requirements; incorrect methods may cause request failures.
  • If the API response is empty or '204 No Content', confirm that the operation was successful or that the resource existed.

Links

Discussion