Google Tag Manager (Improved) icon

Google Tag Manager (Improved)

Use the Google Tag Manager API

Container → List Containers

AI-generated

Overview

This node operation lists all Google Tag Manager (GTM) Containers that belong to a specified GTM Account. It is useful for users who want to retrieve and manage the containers within their GTM account, such as for auditing, reporting, or further automation tasks involving container data.

Use Case Examples

  1. Retrieve all containers for a specific GTM account to display them in a dashboard.
  2. Automate the process of syncing container information with another system by listing containers regularly.

Properties

Name Meaning
Account ID The GTM Account ID for which the containers will be listed.
Optional Query Parameters Additional optional parameters to refine or control the query, such as pagination tokens or filters.

Output

JSON

  • containerId - The unique identifier of the GTM container.
  • name - The name of the GTM container.
  • accountId - The GTM account ID to which the container belongs.
  • path - The API path of the container resource.
  • usageContext - The usage context of the container, e.g., web or mobile.

Dependencies

  • Google Tag Manager API OAuth2 credentials

Troubleshooting

  • Ensure the GTM Account ID is provided; otherwise, the node will throw an error indicating the missing account ID.
  • Verify that the Google Tag Manager API credentials are correctly set up and authorized, as missing or invalid credentials will cause authentication errors.
  • If the API returns paginated results, use the 'Page Token' optional parameter to fetch subsequent pages.

Links

Discussion