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 the 'Get Segment' operation. It allows users to retrieve detailed information about a specific segment by its ID or other query parameters. This is useful for analytics and segmentation tasks within Matomo, enabling users to fetch segment definitions and metadata for further analysis or reporting.

Use Case Examples

  1. Retrieve details of a specific segment by providing its ID to analyze user behavior within that segment.
  2. Fetch all segments available for a site to understand different user groupings and their characteristics.

Properties

Name Meaning
Query Parameters A collection of optional parameters to filter or specify the segment data to retrieve, such as segment ID, site ID, date, period, and other Matomo API query options.

Output

JSON

  • json - The JSON response from the Matomo API containing the segment details or list of segments based on the query parameters.

Dependencies

  • Matomo API with authentication token and domain URL

Troubleshooting

  • Ensure that the Matomo API credentials (domain and auth token) are correctly configured; missing credentials will cause the node to throw an error.
  • Verify that the segment ID or other query parameters are valid and exist in the Matomo instance to avoid empty or error responses.
  • Check network connectivity and Matomo API availability if HTTP requests fail.
  • If the API response is not JSON, the node attempts to parse it; malformed responses may cause parsing errors.

Links

Discussion