Matomo icon

Matomo

Use the Matomo API

Actions542

Tag Manager → Get Container

AI-generated

Summary

Retrieve details of a specific Tag Manager container for a site in Matomo by specifying container identification parameters as query options.

Inputs

  • Query Parameters — Optional key-value pairs to specify the container identification and context, including parameters like 'containerId' to identify the specific container and 'context' to specify the container context (e.g., web or mobile). A wide range of additional filtering and configuration parameters are supported but typically, 'containerId' is essential.

Output shape

a single JSON object representing the details of the requested Tag Manager container, including its configuration and metadata.

The operation requires Matomo API credentials (domain and auth token). If the container is found, its detailed data is returned; otherwise, response may indicate no content or an error. The full range of optional query parameters can be used to filter or modify the request, but only those relevant to identifying or customizing the returned container data are necessary.

Examples

Example 1: Fetch a Tag Manager container by its ID within the default web context.

Set the resource to 'Tag Manager', operation to 'Get Container', and provide the 'containerId' query parameter with the container's identifier.

Discussion