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 'Add Container' operation, it enables adding a new container to a site within Matomo's Tag Manager module. This is useful for managing tags and tracking configurations programmatically. Users can specify query parameters and a JSON request body to customize the container creation.

Use Case Examples

  1. Add a new container to a Google Tag Manager account by specifying the account ID and container context (web or mobile).
  2. Create a container with specific settings by providing detailed JSON in the request body, such as container name, description, and environment.

Properties

Name Meaning
Query Parameters Key-value pairs to customize the API request, such as account ID, container context, and other optional settings.
Request Body JSON object containing the detailed configuration for the container to be added.

Output

JSON

  • * - Response data from the Matomo API call, typically the details of the newly created container or status information.

Dependencies

  • Requires Matomo API credentials including domain and authentication token.

Troubleshooting

  • Ensure that the Matomo domain and authentication token are correctly configured; missing these will cause errors.
  • Verify that the query parameters and request body JSON are correctly formatted and valid for the Tag Manager add container API method.
  • Check the HTTP method used matches the API requirements (POST for adding a container).
  • If the API returns an error, review the error message and stack trace provided by the node for debugging.

Links

Discussion