Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various analytics and management operations based on the selected resource and operation. It is useful for retrieving detailed analytics data, managing experiments, users, goals, and other Matomo modules programmatically. For example, it can fetch user country code mappings, get visit summaries, manage A/B testing experiments, or retrieve page performance metrics.

Use Case Examples

  1. Fetching country code mappings for IP addresses to analyze visitor locations.
  2. Retrieving visit summaries to understand website traffic and user engagement.
  3. Managing A/B testing experiments by adding, updating, or finishing experiments.

Properties

Name Meaning
Query Parameters A collection of optional parameters to customize the API request, such as filtering by date, site ID, or specific metrics.

Output

JSON

  • response - The JSON response from the Matomo API containing the requested data or operation result.

Dependencies

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

Troubleshooting

  • Ensure that the Matomo domain and authentication token credentials are correctly configured; missing these will cause errors.
  • Verify that the selected resource and operation are supported and correctly spelled to avoid unknown resource errors.
  • Check the format and values of query parameters; invalid or unsupported parameters may cause API request failures.
  • If the API response is empty or a 204 No Content status, verify that the requested data exists for the given parameters.

Links

Discussion