Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node interacts with the Matomo API to perform various operations related to the 'Connect Account' resource, specifically to get the list of Google Tag Manager (GTM) workspaces for a given container. It is useful for users who want to manage or retrieve GTM workspace information within their Matomo analytics environment. For example, it can be used to fetch all GTM workspaces associated with a specific GTM container ID, facilitating integration and management of tags and workspaces in GTM via Matomo.

Use Case Examples

  1. Retrieve the list of GTM workspaces for a specific GTM container to manage tags and triggers programmatically.
  2. Fetch GTM workspace details to synchronize or audit workspace configurations across multiple containers.

Properties

Name Meaning
Query Parameters A collection of optional query parameters to filter or specify details for the API request, such as accountId, containerId, workspaceId, and other GTM-related settings.

Output

JSON

  • json - The JSON response from the Matomo API containing the list of GTM workspaces or related data.

Dependencies

  • An API key credential for Matomo API authentication

Troubleshooting

  • Ensure that the Matomo API credentials (domain and auth token) are correctly configured and provided, as missing credentials will cause an error.
  • Verify that the 'resource' parameter is set to 'connectAccount' and the 'operation' parameter is set to 'connectAccountGTMWorkspaceListGet' to correctly call the GTM workspace list API.
  • Check the query parameters for correctness and completeness, especially 'containerId' and 'accountId', as these are essential for fetching the workspace list.
  • If the API response is empty or returns a 204 status, verify that the specified container and account IDs exist and have associated workspaces.
  • Network or permission issues may cause API call failures; ensure the Matomo instance is accessible and the API token has sufficient permissions.

Links

Discussion