Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API, allowing users to perform various operations across multiple Matomo resources. Specifically for the 'Sites Manager' resource and the 'Rename Group' operation, it enables renaming a specific site group within Matomo. This is useful for managing and organizing site groups in Matomo analytics. The node supports a wide range of query parameters to customize the API request and can handle different HTTP methods based on the operation.

Use Case Examples

  1. Renaming a site group in Matomo to better reflect its purpose or ownership.
  2. Managing site groups programmatically as part of a larger automation workflow for Matomo analytics.

Properties

Name Meaning
Query Parameters Collection of key-value pairs to customize the API request, including parameters like oldGroupName and newGroupName for renaming a group.
Request Body JSON object containing the request payload for POST operations, used to send additional data if required by the API.

Output

JSON

  • Status Code - HTTP status code or response status when no content is returned
  • json - Parsed JSON response from the Matomo API call
  • text - Raw text response 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 'oldGroupName' and 'newGroupName' parameters are correctly set in the query parameters to successfully rename a group.
  • Check the HTTP method used matches the operation type; incorrect method usage may lead to API errors.
  • If the API response is empty or not JSON, the node returns a '204 No Content' status or raw text, which might indicate an issue with the request or API endpoint.

Links

Discussion