Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API, allowing users to perform a wide range of analytics and management operations across various Matomo modules. It is particularly useful for retrieving analytics data, managing experiments, reports, users, and other Matomo resources programmatically. For example, users can fetch generic API reports, manage A/B testing experiments, retrieve user activity logs, or update site settings.

Use Case Examples

  1. Fetching a generic API report with specific query parameters to analyze website traffic.
  2. Starting or updating an A/B testing experiment to optimize website performance.
  3. Retrieving user activity logs to monitor user interactions on a site.

Properties

Name Meaning
Query Parameters A collection of key-value pairs representing the query parameters to customize the API request. These parameters vary widely depending on the specific API method being called and can include filters, IDs, flags, and other options.

Output

JSON

  • response - The JSON response from the Matomo API call, which varies depending on the requested resource and operation.

Dependencies

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

Troubleshooting

  • Ensure that the Matomo domain and authentication token are correctly provided; missing these will cause an error.
  • Verify that the selected resource and operation are valid and supported by the Matomo API.
  • Check that query parameters are correctly formatted and appropriate for the chosen API method.
  • Handle HTTP errors or unexpected responses gracefully, as the node throws detailed errors if the API call fails.

Links

Discussion