Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations related to custom variables and other Matomo resources. Specifically, for the 'Custom Variable' resource and the 'Get Custom Variables Values From Name ID' operation, it retrieves the values of custom variables for a specified site and period by their name ID. This node is useful for analytics and reporting scenarios where users want to fetch detailed custom variable data from Matomo for further processing or analysis within n8n workflows.

Use Case Examples

  1. Fetch custom variable values by name ID to analyze user behavior on a website.
  2. Retrieve custom variable data for a specific site and time period to generate custom reports.
  3. Use the node to automate data extraction from Matomo for integration with other systems.

Properties

Name Meaning
Query Parameters A collection of optional query parameters to filter or specify the data to retrieve from Matomo's API for the custom variable values.

Output

JSON

  • json - The JSON response from the Matomo API containing the requested custom variable values or other data depending on the operation.

Dependencies

  • An API key credential for Matomo API authentication

Troubleshooting

  • Ensure that the Matomo domain URL and authentication token are correctly configured in the node credentials to avoid authentication errors.
  • Verify that the query parameters are correctly set and valid for the selected operation to prevent API request failures.
  • Check the Matomo API documentation for the specific resource and operation to understand required and optional parameters.
  • If the API returns an error, review the error message and stack trace provided by the node for troubleshooting.

Discussion