Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node interacts with the Matomo API to perform various operations on different resources within Matomo, such as managing sites, users, reports, and more. Specifically, for the 'Sites Manager' resource and 'Delete Site' operation, it deletes a specified site from the Matomo instance. This node is useful for automating Matomo management tasks, including site administration, data retrieval, and configuration updates. For example, it can be used to programmatically delete a site from Matomo by specifying the site ID.

Use Case Examples

  1. Deleting a site from Matomo by providing the site ID in the 'queryParameters' input.
  2. Retrieving all sites or site details by selecting appropriate operations under the 'Sites Manager' resource.

Properties

Name Meaning
queryParameters Collection of query parameters to customize the API request, including the site ID to delete.

Output

JSON

  • Status Code - Indicates the HTTP status code or response status from the Matomo API after the delete operation.
  • json - Parsed JSON response from the Matomo API if available.
  • text - Raw text response from the Matomo API if JSON parsing fails.

Dependencies

  • Matomo API credentials including domain and authentication token

Troubleshooting

  • Ensure that the Matomo API credentials (domain and auth token) are correctly configured; missing credentials will cause an error.
  • Verify that the site ID provided in the query parameters exists in Matomo; attempting to delete a non-existent site may result in an error.
  • Check the HTTP method and URL constructed for the API call to ensure it matches the Matomo API specification for deleting a site.
  • If the API response is empty or not JSON, the node returns a '204 No Content' status; verify the API endpoint and parameters in such cases.

Links

Discussion