Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations related to analytics and reporting. It supports multiple resources and operations, allowing users to query data, manage experiments, reports, users, and other Matomo features. For the Scheduled Report resource with the Generate Report operation, it generates a scheduled report for a specified date range and parameters, useful for automating report generation and distribution.

Use Case Examples

  1. Generate a scheduled report for a website to analyze traffic and user behavior over a specific period.
  2. Automate the creation and sending of email reports to stakeholders with key analytics data.
  3. Fetch detailed metrics and insights from Matomo for custom dashboards or further processing.

Properties

Name Meaning
Query Parameters Collection of parameters to customize the API request, such as filters, IDs, flags, and other options relevant to the selected resource and operation.
Request Body JSON object containing the request payload for POST, PUT, PATCH operations, allowing detailed configuration or data submission to the API.

Output

JSON

  • json - The JSON response from the Matomo API, containing data or confirmation of the requested operation.

Dependencies

  • Matomo API endpoint and authentication token

Troubleshooting

  • Ensure the Matomo domain URL 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 format and validity of query parameters and request body JSON to prevent API request failures.
  • If the API returns an empty string or no content, the node outputs a '204 No Content' status, which may indicate no data for the query.

Links

Discussion