Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API, allowing users to perform a wide range of operations across various Matomo resources such as AB Testing, Actions, Activity Log, Advertising Conversion Export, Annotations, API, and many more. It is designed to fetch analytics data, manage configurations, and interact with Matomo's extensive modules by specifying the resource and operation, along with query parameters and request body as needed. This node is beneficial for automating data retrieval and management tasks in Matomo, such as fetching reports, managing experiments, handling user data, and more, enabling seamless integration into workflows.

Use Case Examples

  1. Fetch metadata for a specific report by specifying the API resource and Get Metadata operation with appropriate query parameters.
  2. Retrieve active A/B testing experiments for a site by selecting the AB Testing resource and Get Active Experiments operation.
  3. Manage user access by using the Users Manager resource and operations like Add User or Get Users.

Properties

Name Meaning
Query Parameters Collection of optional parameters to customize the API request, such as filters, IDs, flags, and other settings relevant to the selected resource and operation.

Output

JSON

  • json - The JSON response from the Matomo API call, containing data relevant to the requested resource and operation.

Dependencies

  • An API key credential for Matomo API authentication

Troubleshooting

  • Ensure that the Matomo domain URL and authentication token are correctly configured in the node credentials to avoid authentication errors.
  • Verify that the selected resource and operation are supported and correctly spelled to prevent unknown resource or operation errors.
  • Check the query parameters for correctness and compatibility with the selected API method to avoid request failures.
  • If the API response is empty or unexpected, confirm that the Matomo instance is accessible and the API endpoint is correct.

Links

  • Matomo API Reference - Official documentation for the Matomo API, detailing available resources, methods, and parameters.

Discussion