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 'Delete Container' operation, it enables the deletion of a Google Tag Manager container associated with a Matomo site. This is useful for managing and cleaning up tag containers programmatically within automation workflows.

Use Case Examples

  1. Deleting a specific GTM container by providing the container ID and account details to automate container lifecycle management.
  2. Removing obsolete or unused containers from a Matomo-managed Google Tag Manager account to maintain a clean environment.

Properties

Name Meaning
Query Parameters Collection of optional parameters to customize the API request, including identifiers like 'containerId' and 'accountId' to specify which container to delete, and other filters or settings relevant to the operation.

Output

JSON

  • Status Code - Indicates the HTTP status code or response status from the Matomo API, e.g., '204 No Content' for successful deletion without content.
  • json - Parsed JSON response from the Matomo API if available, containing details about the operation result.
  • text - Raw text response from the API if JSON parsing fails.

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 other required query parameters are correctly provided to avoid API errors.
  • Check the HTTP method and URL constructed for the API call to ensure it matches the expected Matomo API endpoint for deleting a container.
  • If the API returns an error, review the error message and stack trace provided in the node error for debugging.

Links

Discussion