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 'Change Debug Url' operation, it enables changing the debug URL for a container within a Google Tag Manager setup. This is useful for managing and debugging tag configurations in Matomo's Tag Manager module. The node supports a wide range of query parameters to customize the API request and can also send a JSON request body for POST operations.

Use Case Examples

  1. Change the debug URL of a specific container in Google Tag Manager to test tag configurations before publishing.
  2. Update the debug URL dynamically based on environment or workspace changes in GTM.

Properties

Name Meaning
Query Parameters Key-value pairs to customize the API request, such as containerId, workspaceId, and other relevant parameters for the Tag Manager API.
Request Body JSON object representing the request payload for POST operations, allowing detailed configuration changes.

Output

JSON

  • response - The JSON response from the Matomo API call, containing the result of the Change Debug Url operation or other requested data.

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 resource and operation names are correctly set to match the Matomo API methods.
  • Check that the query parameters and request body are correctly formatted and valid for the selected operation.
  • API errors from Matomo will be wrapped and presented with the message 'Error calling Matomo API' along with the original error details.

Links

Discussion