Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node interacts with the Matomo API to perform various operations related to the Segment Editor resource, specifically supporting the 'Delete Segment' operation among others. It allows users to delete a specific segment by its ID within a Matomo site. This is useful for managing and maintaining segments in Matomo analytics, such as removing outdated or unnecessary segments to keep the analytics data organized and relevant.

Use Case Examples

  1. Deleting a segment by providing its ID to clean up unused segments in Matomo.
  2. Managing segments programmatically as part of an automated analytics workflow.

Properties

Name Meaning
Query Parameters A collection of optional query parameters to customize the API request, such as segment ID and other filters relevant to the segment deletion.

Output

JSON

  • Status Code - Indicates the HTTP status code or response status from the API call, e.g., '204 No Content' for successful deletion without content.
  • json - The JSON response from the Matomo API, typically containing details about the deleted segment or confirmation of deletion.

Dependencies

  • Matomo API authentication token and domain URL

Troubleshooting

  • Ensure that the Matomo API credentials (domain and auth token) are correctly configured; missing credentials will cause errors.
  • Verify that the segment ID provided in the query parameters is valid and exists; invalid IDs will result in API errors.
  • Check network connectivity and Matomo server availability to avoid request failures.
  • Handle HTTP status codes properly; a '204 No Content' status indicates successful deletion without a response body.

Links

Discussion