Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations related to custom reports and other Matomo resources. Specifically, for the 'Custom Report' resource and 'Get Configured Report' operation, it fetches a specific custom report by its ID for a given site. This node is useful for users who want to retrieve detailed analytics reports configured in Matomo, enabling them to automate data retrieval and analysis workflows. For example, a user can fetch a custom report to analyze website traffic or user behavior metrics programmatically.

Use Case Examples

  1. Fetch a configured custom report by specifying the report ID and site ID to analyze website performance metrics.
  2. Retrieve all configured custom reports for a site to automate reporting processes.

Properties

Name Meaning
Query Parameters A collection of optional parameters to customize the API request, such as filtering by site ID, date, period, and other report-specific options.

Output

JSON

  • data - The JSON response data from the Matomo API representing the requested custom report or other resource data

Dependencies

  • Matomo API credentials (domain and auth token)

Troubleshooting

  • Ensure that the Matomo API credentials (domain and auth token) are correctly configured and provided, as missing credentials will cause the node to throw an error.
  • Verify that the 'resource' and 'operation' parameters are correctly set to valid values supported by the node; invalid values will result in an 'Unknown resource' error.
  • Check the query parameters for correctness and completeness, as incorrect parameters may lead to API errors or unexpected results.
  • If the API response is empty or returns a 204 status, verify that the requested report or data exists and that the user has appropriate permissions to access it.

Links

  • Matomo Reporting API - Official documentation for the Matomo Reporting API, detailing available methods and parameters.
  • Matomo Documentation - General documentation for Matomo analytics platform, including API usage and configuration.

Discussion