Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations across multiple resources, including scheduled reports. Specifically, for the Scheduled Report resource with the Add Report operation, it allows users to add a new scheduled email report for a site by sending the appropriate API request to Matomo. This is useful for automating the generation and distribution of analytics reports via email on a schedule.

Use Case Examples

  1. Automatically create a scheduled report to email website analytics to stakeholders every week.
  2. Add a new scheduled report to monitor key metrics and send notifications to a team via email or Slack.

Properties

Name Meaning
Query Parameters A collection of optional query parameters to customize the API request, such as filters, IDs, flags, and other settings relevant to the scheduled report or other Matomo resources.
Request Body A JSON object representing the request payload to be sent with the API call, used for POST operations like adding a scheduled report.

Output

JSON

  • * - The JSON response from the Matomo API call, which varies depending on the operation and resource. For adding a scheduled report, it typically includes details of the created report or confirmation of the action.

Dependencies

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

Troubleshooting

  • Ensure that the Matomo domain URL and authentication token are correctly configured in the node credentials; missing these will cause errors.
  • Verify that the query parameters and request body JSON are correctly formatted and valid for the specific API method being called.
  • Check the Matomo API documentation for the correct method names and required parameters for the Scheduled Report Add Report operation.
  • If the API returns an error, the node throws a NodeApiError with the message and stack trace to help diagnose issues.

Links

Discussion