Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations related to AB Testing, specifically including updating an existing A/B experiment. It allows users to send requests to Matomo's API endpoints to manage and modify A/B testing experiments by specifying query parameters and request body data. This node is useful for automating the management of A/B tests, such as updating experiment settings, starting or finishing experiments, and retrieving experiment data.

Use Case Examples

  1. Updating an existing A/B test experiment with new parameters to adjust the test configuration.
  2. Starting or finishing an A/B test experiment programmatically based on external triggers.
  3. Retrieving metrics overview or detailed reports for A/B testing experiments to analyze performance.

Properties

Name Meaning
Query Parameters A collection of optional parameters to customize the API request, such as experiment ID, status, metrics, and other filters relevant to the A/B testing operation.
Request Body A JSON object containing the data to update the experiment with, such as new experiment settings or configurations.

Output

JSON

  • json - The JSON response from the Matomo API, which may include details of the updated experiment, status messages, or other relevant data returned by the API.

Dependencies

  • Matomo API credentials including domain and authentication token

Troubleshooting

  • Ensure that the Matomo API credentials (domain and auth token) are correctly configured; missing credentials will cause an error.
  • Verify that the 'idExperiment' and other required parameters are correctly set in the query parameters or request body to avoid API errors.
  • Check the API method and parameters for correctness as per Matomo API documentation to prevent request failures.
  • Handle HTTP errors and API response errors gracefully; the node throws detailed errors if the API call fails.

Links

Discussion