Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations across multiple resources such as Sites Manager, AB Testing, Actions, and more. Specifically, for the 'Sites Manager' resource and 'Set Site Alias URLs' operation, it allows users to set alias URLs for a specific site in Matomo. This is useful for managing multiple URLs that should be treated as the same site in analytics reports. The node supports a wide range of query parameters to customize the API request and accepts a JSON request body for POST operations.

Use Case Examples

  1. Setting alias URLs for a site to consolidate tracking across multiple domain variations.
  2. Managing site settings programmatically by updating alias URLs via the Matomo API.

Properties

Name Meaning
Query Parameters Collection of optional parameters to customize the API request, such as site ID, URLs, and other filters relevant to the Sites Manager resource.
Request Body JSON object containing the data to be sent in the body of the request, used for POST operations like setting site alias URLs.

Output

JSON

  • response - The JSON response from the Matomo API call, which may include confirmation of the alias URLs being set or other relevant data returned by the API.

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 these will cause errors.
  • Verify that the query parameters and request body are correctly formatted and valid for the selected operation to avoid API errors.
  • Check the API method and HTTP method mapping to ensure the correct API endpoint is called for the operation.
  • If the API response is empty or a 204 No Content status, verify that the request parameters are correct and that the Matomo server is reachable.

Links

Discussion