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 supports a wide range of Matomo modules such as Live, AB Testing, Actions, and many others, allowing users to query data, manage experiments, retrieve visitor profiles, and more. For the 'Live' resource with the 'Is Visitor Profile Enabled' operation, it checks if the visitor profile feature is enabled for a specified site, which is useful for understanding if detailed visitor tracking is active.

Use Case Examples

  1. Check if visitor profiles are enabled for a website to decide whether to fetch detailed visitor data.
  2. Retrieve live visit counters or last visit details for real-time analytics.
  3. Manage A/B testing experiments by adding, updating, or finishing experiments.

Properties

Name Meaning
Query Parameters Collection of optional parameters to customize the API request, such as site ID, date, period, and other filters relevant to the selected operation.

Output

JSON

  • response - The JSON response from the Matomo API call, which varies depending on the resource and operation selected. For 'Is Visitor Profile Enabled', it returns a boolean or status indicating if the feature is enabled.

Dependencies

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

Troubleshooting

  • Ensure that the Matomo domain and authentication token are correctly configured in the node credentials; missing these will cause errors.
  • Verify that the selected resource and operation are supported and correctly spelled to avoid unknown resource errors.
  • Check the query parameters for correctness and completeness as invalid parameters may lead to API errors or empty responses.
  • If the API returns a string response, the node attempts to parse it as JSON; malformed JSON responses may cause parsing errors.

Links

Discussion