Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API, allowing users to perform various operations across multiple Matomo resources. Specifically for the 'Tag Manager' resource and the 'Update Container Variable' operation, it enables updating an existing variable within a Google Tag Manager container. Users provide necessary query parameters and a JSON request body to specify the update details. This node is beneficial for automating and managing Google Tag Manager configurations programmatically within Matomo, such as updating container variables without manual intervention.

Use Case Examples

  1. Updating a GTM container variable to change its value or configuration based on dynamic inputs.
  2. Automating the management of GTM containers by updating variables as part of a larger workflow.

Properties

Name Meaning
Query Parameters Key-value pairs used as query parameters in the API request to filter or specify details for the update operation.
Request Body JSON object containing the data to update the container variable with, such as new variable settings or values.

Output

JSON

  • response - The JSON response from the Matomo API after updating the container variable, containing details of the updated variable or status information.

Dependencies

  • Requires 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 errors.
  • Verify that the 'containerId' and 'idVariable' query parameters are correctly set to target the specific container and variable to update.
  • The request body must be a valid JSON string representing the update data; invalid JSON will cause request failures.
  • Check the Matomo API documentation for the correct method and required parameters for updating container variables to avoid malformed requests.

Links

Discussion