Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node interacts with the Matomo API to perform various operations on different resources. Specifically, for the 'Custom Report' resource with the 'Delete Custom Report' operation, it deletes a specific custom report by its ID for a site. This node is useful for automating the management of Matomo analytics data, such as creating, updating, or deleting custom reports programmatically. For example, it can be used to clean up obsolete reports or manage reports across multiple sites automatically.

Use Case Examples

  1. Delete a custom report by specifying its ID and site ID to remove outdated analytics reports.
  2. Automate the deletion of multiple custom reports based on certain criteria to maintain a clean analytics environment.

Properties

Name Meaning
Query Parameters A collection of optional parameters to filter or specify details for the API request, such as the ID of the custom report to delete, site ID, and other relevant filters.

Output

JSON

  • Status Code - HTTP status code indicating the result of the delete operation, e.g., '204 No Content' for successful deletion with no content returned.

Dependencies

  • Requires Matomo API credentials including domain URL and authentication token.

Troubleshooting

  • Ensure that the Matomo domain URL and authentication token are correctly configured in the node credentials; missing or incorrect credentials will cause authentication errors.
  • Verify that the 'ID Custom Report' parameter is correctly set to the ID of an existing custom report; attempting to delete a non-existent report will result in an error from the API.
  • Check network connectivity to the Matomo server to avoid request failures.
  • If the API returns an error, review the error message and stack trace provided by the node for debugging.

Links

Discussion