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 or manipulate analytics data, manage configurations, and interact with Matomo's extensive modules. A common use case is retrieving widget metadata for dashboards or querying specific analytics reports by specifying the resource and operation, along with query parameters.

Use Case Examples

  1. Fetching widget metadata for a given site to display in a dashboard.
  2. Retrieving active A/B testing experiments for a site.
  3. Getting detailed action metrics for a specific period and site.

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, such as site ID, date, period, filters, and many other options.

Output

JSON

  • json - The JSON response from the Matomo API call, which varies depending on the resource and operation selected. It can include analytics data, metadata, configuration details, or status messages.

Dependencies

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

Troubleshooting

  • Ensure that the Matomo domain and authentication token are correctly configured; 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 operation.
  • API errors from Matomo will be wrapped and presented with the message 'Error calling Matomo API' along with the original error message and stack trace if available.

Links

Discussion