Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various analytics and management operations. It supports multiple resources and operations, allowing users to query and manipulate data such as visits summary, actions, goals, custom reports, and more. The node is useful for automating data retrieval and management tasks in Matomo, such as fetching visit metrics, managing A/B tests, handling user data, and generating reports. For example, it can be used to get a pretty formatted total visit length for a website, retrieve user flow data, or manage custom alerts.

Use Case Examples

  1. Get total visit length in a user-friendly format for a specific site and period.
  2. Retrieve detailed user flow data to analyze visitor behavior.
  3. Manage A/B testing experiments by adding, updating, or finishing experiments.

Properties

Name Meaning
Query Parameters Collection of optional parameters to filter or specify the API request details, such as site ID, date, period, segment, and many other Matomo-specific options.

Output

JSON

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

Dependencies

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

Troubleshooting

  • Ensure that the Matomo domain URL and authentication token are correctly provided in the credentials; missing these will cause an error.
  • Verify that the selected resource and operation are supported and correctly spelled; unknown resources or operations will throw an error.
  • Check the query parameters for correctness and completeness as per Matomo API documentation to avoid invalid requests.
  • If the API response is empty or unexpected, verify the Matomo server status and API endpoint accessibility.

Links

Discussion