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 Trigger' operation, it updates an existing trigger within a Google Tag Manager container. This is useful for managing and modifying triggers that control when tags fire in GTM containers, enabling precise control over tag deployment in web analytics and marketing setups.

Use Case Examples

  1. Updating a trigger in a GTM container to change its conditions or settings without manually accessing the GTM interface.
  2. Automating the management of GTM triggers as part of a larger workflow that adjusts tracking based on dynamic criteria.

Properties

Name Meaning
Query Parameters Key-value pairs used as query parameters to filter or specify details for the API request, such as container ID, trigger ID, and other trigger-related settings.
Request Body JSON object containing the data to update the container trigger with, such as new trigger configurations or properties.

Output

JSON

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

Dependencies

  • Requires Matomo API credentials including domain URL 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 container ID and trigger ID provided in the query parameters are correct and exist in the specified GTM account.
  • Check the format and content of the request body JSON to ensure it matches the expected structure for updating a container trigger.
  • API errors will be thrown with messages indicating the cause; review these messages to adjust parameters or request body accordingly.

Links

Discussion