Matomo icon

Matomo

Use the Matomo API

Actions542

AB Testing → Get JS Experiment Template

AI-generated

Overview

This node integrates with the Matomo API to perform various operations related to AB Testing, specifically including the ability to get the JavaScript experiment template for a specific experiment. It is useful for users who want to manage and retrieve data about A/B testing experiments in Matomo, such as fetching experiment details, metrics, and JavaScript templates for embedding experiments on websites.

Use Case Examples

  1. Retrieve the JavaScript experiment template for a specific A/B test to embed in a website.
  2. Fetch active or all experiments for a site to monitor ongoing A/B tests.
  3. Add, update, start, finish, or archive A/B test experiments programmatically.

Properties

Name Meaning
Query Parameters A collection of optional parameters to customize the API request, such as experiment ID, site ID, status filters, and other Matomo-specific query options.

Output

JSON

  • response - The JSON response from the Matomo API containing the requested data, such as the JavaScript experiment template or experiment details.

Dependencies

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

Troubleshooting

  • Ensure that the Matomo domain URL and authentication token are correctly configured in the node credentials; missing these will cause an error.
  • Verify that the query parameters are correctly formatted and valid for the selected operation to avoid API errors.
  • Check the operation and resource selections to ensure they match supported Matomo API methods.

Links

Discussion