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 'Pause Container Tag' operation, it pauses a tag within a container for a specified site. This is useful for managing tags in Google Tag Manager containers programmatically, such as temporarily disabling tags without deleting them. Practical examples include pausing tracking tags during site maintenance or testing phases.

Use Case Examples

  1. Pause a specific tag in a Google Tag Manager container to stop data collection temporarily.
  2. Manage container tags dynamically based on workflow conditions, such as pausing tags during off-peak hours.

Properties

Name Meaning
Query Parameters Collection of parameters to customize the API request, including identifiers like containerId, workspaceId, and tagId, among many others.
Request Body JSON object containing the request payload for POST operations, used to send additional data when pausing a container tag.

Output

JSON

  • Status Code - HTTP status code or response status indicating the result of the API call
  • json - Parsed JSON response from the Matomo API containing details about the paused container tag or operation result

Dependencies

  • Matomo API credentials including domain 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 container ID, tag ID, and workspace ID are correctly specified in the query parameters to avoid API errors.
  • Check the HTTP method and request body format; incorrect method or malformed JSON in the request body can lead to request failures.
  • If the API returns a 204 No Content status, it means the operation was successful but no data was returned.

Links

Discussion