Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations across multiple resources, including AB Testing. Specifically, for the 'Delete Experiment' operation under the 'AB Testing' resource, it deletes a specified A/B test experiment for a site. This node is useful for managing A/B testing experiments programmatically, such as deleting obsolete or completed experiments. Practical use cases include automating experiment lifecycle management within marketing or analytics workflows.

Use Case Examples

  1. Deleting an A/B test experiment by specifying its ID and site parameters to clean up old experiments.
  2. Automating the removal of experiments after they have been archived or finished.

Properties

Name Meaning
Query Parameters Collection of optional query parameters to customize the API request, such as experiment ID, site ID, and other filters relevant to the operation.
Request Body JSON object containing the request payload for POST operations, if applicable.

Output

JSON

  • json - Parsed JSON response from the Matomo API call
  • text - Raw text response if JSON parsing fails
  • Status Code - HTTP status code or message when no content is returned

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 an error.
  • Verify that the experiment ID and other required parameters are correctly provided in the query parameters; incorrect or missing IDs may result in API errors.
  • Check the HTTP method and endpoint URL constructed for the operation; malformed URLs or unsupported methods will cause request failures.
  • If the API response is not JSON, the node attempts to parse it; if parsing fails, the raw text is returned instead.

Links

Discussion