Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations on different resources, including the Segment Editor's Update Segment operation. It allows users to update an existing segment by sending a POST request with the segment data in the request body. This is useful for managing and modifying segments in Matomo analytics, enabling tailored data analysis and reporting.

Use Case Examples

  1. Updating a segment's definition or name to refine analytics filtering.
  2. Modifying segment parameters to include or exclude specific visitor data for more accurate reports.

Properties

Name Meaning
Query Parameters Key-value pairs of query parameters to customize the API request for updating the segment.
Request Body JSON object containing the data to update the segment with, such as segment definition, name, or other attributes.

Output

JSON

  • * - Response data from the Matomo API after updating the segment, typically including the updated segment details or status.

Dependencies

  • Requires Matomo API credentials including domain URL and authentication token.

Troubleshooting

  • Ensure the Matomo domain and authentication token are correctly configured; missing these will cause errors.
  • Verify that the segment ID and data in the request body are valid and correctly formatted JSON.
  • Check that the operation and resource parameters are set to 'Update Segment' and 'Segment Editor' respectively to avoid unknown resource errors.
  • API errors from Matomo will be caught and returned with descriptive messages; review these for troubleshooting.

Links

Discussion