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 'Get Available Environments' operation, it fetches the list of available environments for a Google Tag Manager container. This is useful for managing and automating tag environments in GTM containers, such as retrieving staging, live, or development environments for deployment or configuration purposes.

Use Case Examples

  1. Retrieve all available environments for a specific GTM container to automate deployment workflows.
  2. Fetch environment details to dynamically adjust tag configurations based on environment type (e.g., live vs staging).

Properties

Name Meaning
Query Parameters Optional parameters to filter or specify details for the API request, such as accountId, containerId, workspaceId, environment, etc.

Output

JSON

  • json - The JSON response from the Matomo API containing the list of available environments for the specified GTM container.

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 specified resource is 'tagManager' and operation is 'tagManagerAvailableEnvironmentsGet' to match the intended API call.
  • Check that the query parameters include valid identifiers such as accountId, containerId, and workspaceId as required by the Matomo Tag Manager API.
  • If the API response is empty or unexpected, confirm that the Matomo instance has the Tag Manager plugin enabled and the user has sufficient permissions.

Links

Discussion