Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations related to the Segment Editor resource, specifically checking if a user has permission to add a new segment. It constructs API requests based on user-selected resource and operation parameters, sends HTTP requests to the Matomo API, and returns the API response data. This node is useful for automating Matomo analytics tasks such as managing segments, experiments, and other analytics modules.

Use Case Examples

  1. Check if a user can add a new segment in Matomo to control segment creation permissions in an automated workflow.
  2. Retrieve segment details or update segments programmatically using the Segment Editor resource.

Properties

Name Meaning
Query Parameters Collection of optional query parameters to customize the API request, such as filtering by access level, date, or other Matomo-specific options.

Output

JSON

  • response - The JSON response data returned from the Matomo API call, which varies depending on the selected resource and operation.

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 the Matomo API and that required query parameters are provided.
  • Check network connectivity and Matomo server availability if HTTP requests fail.
  • If the API returns an error message, review the message for details on missing or invalid parameters and adjust the node configuration accordingly.

Links

Discussion