Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations on different resources. Specifically, for the 'Custom Alert' resource and 'Delete Alert' operation, it deletes a specific alert by its ID. The node constructs the appropriate API request URL based on the selected resource and operation, includes query parameters, and sends the request to Matomo's API using the provided domain and authentication token. It handles different HTTP methods depending on the operation and returns the API response as JSON. This node is useful for automating Matomo analytics management tasks such as managing custom alerts, reports, goals, and other analytics features.

Use Case Examples

  1. Deleting a custom alert by specifying the alert ID in the query parameters to automate alert management in Matomo.
  2. Managing various Matomo resources like AB Testing, Actions, Custom Reports, and more by selecting the appropriate resource and operation.

Properties

Name Meaning
Query Parameters Collection of optional parameters to customize the API request, including the alert ID for deletion and other filters or settings.

Output

JSON

  • json - The JSON response from the Matomo API after performing the requested operation, such as confirmation of alert deletion.

Dependencies

  • Requires 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 alert ID provided in the query parameters is valid and exists in Matomo to avoid API errors when deleting an alert.
  • Check the HTTP method used matches the operation type; for delete operations, the method is DELETE, and for others, it may be GET, POST, or PUT.
  • If the API response is empty or a 204 No Content status, confirm that the operation was successful or that the resource exists.

Links

Discussion