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 facilitate analytics data retrieval, management, and configuration tasks within Matomo from an n8n workflow. For example, users can get plugin activation status, fetch reports, manage experiments, or retrieve user data by specifying the resource and operation along with query parameters.

Use Case Examples

  1. Retrieve the activation status of a specific plugin using the 'API' resource and 'Get Plugin Activation' operation.
  2. Fetch detailed analytics reports by specifying the appropriate resource and operation, such as 'Visits Summary' and 'Get Actions'.
  3. Manage AB testing experiments by adding, updating, or finishing experiments through the corresponding operations under the 'AB Testing' resource.

Properties

Name Meaning
Query Parameters A collection of key-value pairs used to filter or specify details for the API request. These parameters vary widely depending on the selected resource and operation, allowing fine-grained control over the data or action requested.

Output

JSON

  • json - The JSON response from the Matomo API call, containing data or status information depending on the requested operation.

Dependencies

  • An API key credential for Matomo API authentication

Troubleshooting

  • Ensure 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 completeness as invalid or missing parameters may cause API 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