Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations across multiple resources. Specifically, for the 'Segment Editor' resource with the 'Get All Segments' operation, it retrieves a list of all saved segments for a specified site. This is useful for analytics and segmentation tasks within Matomo, allowing users to programmatically access segment data for reporting or further processing.

Use Case Examples

  1. Retrieve all segments for a specific website to analyze user behavior patterns.
  2. Fetch all saved segments to synchronize segment data with another system or dashboard.

Properties

Name Meaning
Query Parameters Optional parameters to filter or modify the API request for retrieving segments, such as site ID, segment name, or other filters.

Output

JSON

  • json - Array of segment objects returned by the Matomo API, each representing a saved segment with its details.

Dependencies

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

Troubleshooting

  • Ensure that the Matomo domain URL and authentication token are correctly configured in the node credentials; missing or incorrect credentials will cause authentication errors.
  • Verify that the 'resource' is set to 'Segment Editor' and the 'operation' is set to 'Get All Segments' to avoid calling incorrect API endpoints.
  • Check the query parameters for correctness and supported values to prevent API request failures.
  • If the API response is empty or returns a 204 status, confirm that there are saved segments available for the specified site in Matomo.

Links

Discussion