Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations across multiple resources, including sending feedback for surveys. It allows users to specify the resource and operation to execute, along with query parameters and request body data. The node constructs the appropriate API request URL and method based on the selected resource and operation, sends the request to the Matomo API, and returns the response data. This is useful for automating interactions with Matomo analytics, such as sending user feedback, managing experiments, retrieving analytics data, and more.

Use Case Examples

  1. Sending user feedback for a specific survey question by specifying the 'Feedback' resource and 'Send Feedback For Survey' operation, including relevant query parameters and request body data.
  2. Retrieving active A/B testing experiments by selecting the 'AB Testing' resource and the 'Get Active Experiments' operation.
  3. Fetching page titles analytics by choosing the 'Action' resource and the 'Get Page Titles' operation.

Properties

Name Meaning
Query Parameters Collection of optional query parameters to customize the API request, such as filtering, pagination, or specific data attributes.
Request Body JSON object containing the request payload for POST, PUT, or PATCH operations, used to send data to the API.

Output

JSON

  • json - The JSON response from the Matomo API, which varies depending on the resource and operation executed.

Dependencies

  • Matomo API credentials (domain and authentication token) are required to authenticate requests.

Troubleshooting

  • Ensure that the Matomo API credentials (domain and auth token) are correctly configured; missing credentials will cause errors.
  • Verify that the selected resource and operation are supported and correctly spelled; unknown resources or operations will throw errors.
  • Check the format of query parameters and request body JSON; invalid formats may cause API request failures.
  • If the API response is empty or a string, the node attempts to parse it as JSON; malformed JSON responses may cause parsing errors.

Links

  • Matomo API Documentation - Official documentation for the Matomo API, detailing available resources, methods, and parameters.

Discussion