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 Container Embed Code' operation, it retrieves the embed code for a specified Google Tag Manager container within a Matomo site. This is useful for embedding GTM containers into websites for tag management purposes. Users can specify query parameters such as container ID, workspace ID, and environment to customize the request.

Use Case Examples

  1. Retrieve the embed code for a GTM container to embed it into a website for tracking and tag management.
  2. Fetch the embed code for a specific container version in a staging environment for testing before going live.

Properties

Name Meaning
Query Parameters Collection of optional parameters to customize the API request, including containerId, workspaceId, environment, and other filters relevant to the Tag Manager API.

Output

JSON

  • embedCode - The embed code string for the specified GTM container.
  • containerId - Identifier of the GTM container for which the embed code is retrieved.
  • workspaceId - Identifier of the workspace within the GTM container.
  • environment - The environment context (e.g., live, staging, dev) for the embed code.

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 containerId and workspaceId query parameters are correctly set to avoid API errors or empty responses.
  • Check network connectivity and Matomo API availability if requests fail.
  • If the API returns unexpected data or errors, verify the operation and resource parameters are correctly selected.

Links

Discussion