Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API, allowing users to perform various operations on different Matomo resources. Specifically, for the 'Tag Manager' resource and the 'Add Container Tag' operation, it enables adding a new tag to a Google Tag Manager container within a Matomo site. This is useful for managing and automating tag configurations in GTM containers programmatically via Matomo's API.

Use Case Examples

  1. Adding a new tag to a GTM container for a specific site to track user interactions or conversions.
  2. Automating the deployment of tags across multiple containers and workspaces in GTM through Matomo API calls.

Properties

Name Meaning
Query Parameters Collection of optional query parameters to customize the API request, such as containerId, workspaceId, and other tag-related settings.
Request Body JSON object representing the request payload to define the container tag details to be added.

Output

JSON

  • json - The JSON response from the Matomo API call, typically containing details of the added container tag or operation result.

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 containerId and workspaceId query parameters are correctly set to target the desired GTM container and workspace.
  • Check the requestBody JSON structure for correctness as per Matomo API documentation for adding container tags.
  • 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