Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API, allowing users to perform various operations across multiple Matomo resources. Specifically, for the 'API' resource and 'Get PHP Version' operation, it fetches the PHP version used by the Matomo instance. The node is useful for retrieving analytics data, managing configurations, and interacting with Matomo's extensive modules programmatically. For example, users can get metrics, manage experiments, or fetch system information like the PHP version.

Use Case Examples

  1. Retrieve the PHP version used by the Matomo server to ensure compatibility or for debugging purposes.
  2. Fetch analytics data for a specific site and period using the generic API report operation.

Properties

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

Output

JSON

  • response - The JSON response from the Matomo API call, containing the requested data such as the PHP version information.

Dependencies

  • An API key credential for Matomo API authentication

Troubleshooting

  • Ensure the Matomo domain URL and authentication token are correctly configured in the node credentials to avoid authentication errors.
  • Verify that the selected resource and operation are supported by your Matomo instance version.
  • Check the query parameters for correctness and compatibility with the chosen API method to prevent request failures.
  • Common error messages include authentication failures, invalid method names, or missing required parameters. Review the error message and stack trace for details and adjust the configuration accordingly.

Links

Discussion