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 'Delete Container Tag' operation, it enables the deletion of a tag from a container within a Google Tag Manager setup for a site. This is useful for managing and cleaning up tags in GTM containers programmatically. The node supports a wide range of Matomo API methods across many resources, making it versatile for analytics and tag management tasks.

Use Case Examples

  1. Deleting a specific tag from a GTM container to remove obsolete or incorrect tracking tags.
  2. Managing GTM containers by programmatically adding, updating, or deleting tags, triggers, and variables.
  3. Fetching details about containers, tags, triggers, and variables to audit or report on GTM configurations.

Properties

Name Meaning
Query Parameters Collection of query parameters to customize the API request, including identifiers like containerId, workspaceId, and tagId relevant to the Tag Manager operations.

Output

JSON

  • Status Code - Indicates the HTTP status code or response status from the Matomo API call, e.g., '204 No Content' for successful deletions without content.
  • json - The JSON response from the Matomo API, containing data relevant to the requested operation, such as confirmation of deletion or details of the tag.

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 tag ID provided in the query parameters are correct and exist in the specified GTM container.
  • Check the HTTP method used matches the operation type; for deletion, the method should be DELETE.
  • If the API returns an error, inspect the error message and stack trace provided by the node for debugging.

Links

Discussion