Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various analytics and management operations. Specifically, for the Insight resource with the 'Can Generate Insights' operation, it checks if insights can be generated for a specified period and date. This is useful for users who want to programmatically verify the availability of insights data before attempting to retrieve detailed analytics. Practical applications include automating data validation steps in analytics workflows or triggering further data processing only when insights are available.

Use Case Examples

  1. Check if insights can be generated for a specific website and date range to decide whether to proceed with detailed data retrieval.
  2. Automate monitoring of analytics readiness by periodically verifying insight generation capability for multiple sites.

Properties

Name Meaning
Query Parameters A collection of optional parameters to customize the API request, such as date, period, site ID, and other filters relevant to the insight generation check.

Output

JSON

  • response - The JSON response from the Matomo API indicating whether insights can be generated for the specified parameters.

Dependencies

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

Troubleshooting

  • Ensure that the Matomo API credentials (domain and auth token) are correctly configured; missing credentials will cause an error.
  • Verify that the query parameters are correctly formatted and valid for the Matomo Insights API to avoid request failures.
  • Check network connectivity to the Matomo instance to prevent HTTP request errors.
  • If the API returns an error, review the error message for details on invalid parameters or permissions issues.

Links

Discussion