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 'Create Default Container For Site' operation, it creates a default Google Tag Manager container for a specified site. This is useful for automating the setup of tag management containers in Matomo, streamlining the process of managing tags for websites.

Use Case Examples

  1. Automatically create a default GTM container for a new website to start tracking user interactions without manual setup.
  2. Use in workflows to programmatically manage tag containers across multiple sites in Matomo.

Properties

Name Meaning
Query Parameters A collection of optional parameters to customize the API request, such as account ID, container context (web or mobile), container ID, workspace ID, and other relevant settings for the Tag Manager API.
Request Body A JSON object representing the request payload to send with the API call, used for POST operations like creating a default container.

Output

JSON

  • Status Code - HTTP status code or message when no content is returned
  • json - Parsed JSON response from the Matomo API call

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 'resource' and 'operation' parameters are correctly set to valid values supported by the node.
  • If the API returns an error, check the error message and stack trace for details; common issues include invalid parameters or insufficient permissions.

Discussion