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 the ability to get the JavaScript include template for embedding experiments. It is useful for users who want to manage and retrieve data about A/B testing experiments in Matomo, such as fetching experiment templates, metrics, and managing experiments programmatically.

Use Case Examples

  1. A marketing analyst uses this node to fetch the JavaScript include template for embedding an A/B test experiment on their website.
  2. A developer automates the retrieval of active A/B experiments and their JavaScript templates to dynamically update the website's testing scripts.

Properties

Name Meaning
Query Parameters A collection of optional parameters to customize the API request, such as filtering by experiment ID, status, or other attributes relevant to the AB Testing module.

Output

JSON

  • response - The JSON response from the Matomo API call, which varies depending on the operation. For 'Get JS Include Template', it returns the JavaScript code template for embedding A/B testing experiments.

Dependencies

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

Troubleshooting

  • Ensure that the Matomo domain and authentication token credentials are correctly configured; missing these will cause the node to throw 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 names are correctly set to match supported Matomo API methods.

Links

Discussion