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 'Image Graph' resource and 'Get Static Image Graph' operation, it generates a static PNG graph for any Matomo report based on user-specified query parameters. This is useful for users who want to visualize analytics data as images for reports, dashboards, or presentations without manually generating graphs in Matomo's UI.

Use Case Examples

  1. Generate a static image graph of website traffic trends over a specified period.
  2. Create a pie chart image representing visitor device types for embedding in reports.
  3. Produce a vertical bar graph image showing conversion metrics for a marketing campaign.

Properties

Name Meaning
Query Parameters A collection of parameters to customize the API request for generating the static image graph, such as graph type, dimensions, period, and other Matomo-specific options.

Output

JSON

  • imageGraph - The response data from Matomo API representing the static image graph, typically in PNG format encoded as a string or binary data depending on API response.

Dependencies

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

Troubleshooting

  • Ensure that the Matomo domain and authentication token credentials are correctly configured; missing these will cause errors.
  • Verify that the query parameters are valid and supported by the Matomo API for the 'ImageGraph.get' method to avoid API errors.
  • Check network connectivity and Matomo server availability if requests fail or time out.
  • If the response is empty or '204 No Content', verify that the requested report and parameters actually produce data in Matomo.

Links

Discussion