Google Tag Manager (Improved) icon

Google Tag Manager (Improved)

Use the Google Tag Manager API

Container → Combine Containers

AI-generated

Overview

This node operation combines two Google Tag Manager (GTM) containers into one. It is useful when you want to merge the contents of one container into another, consolidating tags, triggers, variables, and other container elements. For example, if you have two separate GTM containers for different environments or projects and want to unify them into a single container, this operation facilitates that process.

Use Case Examples

  1. Merging a development container into a production container to unify tracking setups.
  2. Combining containers from different teams to streamline tag management.

Properties

Name Meaning
Account ID The GTM Account ID where the containers reside.
Container ID The GTM Container ID of the container into which another container will be merged.
Optional Query Parameters Additional parameters to customize the combine operation, such as copying settings, users, terms of service acceptance, and specifying the container version or setting source after combine.

Output

JSON

  • accountId - The GTM Account ID used in the operation.
  • containerId - The GTM Container ID into which another container is combined.
  • response - The API response from the combine containers operation, containing details of the combined container or operation status.

Dependencies

  • Google Tag Manager API with OAuth2 credentials

Troubleshooting

  • Ensure that the Account ID and Container ID are provided; missing these will cause errors.
  • The operation requires valid Google Tag Manager OAuth2 credentials; missing or invalid credentials will prevent API calls.
  • If the 'copyTermsOfService' parameter is false, the operation will fail because terms of service agreements must be accepted.
  • Check that the container to be merged exists and is accessible with the provided credentials.
  • API errors will be wrapped and reported with the message 'Error calling GTM API' followed by the specific error message.

Discussion