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 'Add Container Trigger' operation, it enables adding a new trigger to a Google Tag Manager container within a Matomo-managed site. This is useful for automating tag management workflows, such as setting up triggers that fire tags based on user interactions or other conditions in a container.

Use Case Examples

  1. Automatically add a trigger to a GTM container to fire tags on specific user actions.
  2. Manage GTM container triggers programmatically as part of a CI/CD pipeline for analytics setup.

Properties

Name Meaning
Query Parameters Collection of key-value pairs representing query parameters to customize the API request, such as containerId, workspaceId, and other trigger-specific settings.
Request Body JSON object representing the request payload to define the container trigger details, such as trigger type, name, conditions, and other configuration.

Output

JSON

  • json - The JSON response from the Matomo API representing the result of the add container trigger operation, typically including details of the created 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 an error.
  • Verify that the containerId and workspaceId query parameters are correctly set to target the desired GTM container and workspace.
  • Check that the requestBody JSON is properly formatted and includes all required fields for creating a container trigger.
  • API errors will be wrapped and reported with the message 'Error calling Matomo API' along with the original error message and stack trace.

Links

Discussion