Google Tag Manager (Improved) icon

Google Tag Manager (Improved)

Use the Google Tag Manager API

Account → Get Account

AI-generated

Overview

This node interacts with the Google Tag Manager (GTM) API to retrieve details of a specific GTM Account. It is useful for users who need to fetch account information such as account settings or metadata by providing the GTM Account ID. For example, a user can use this node to get details of their GTM account to verify account configurations or to use the account data in further automation workflows.

Use Case Examples

  1. Retrieve details of a GTM Account by specifying the Account ID to get its metadata and settings.
  2. Use the node to fetch account information before performing updates or other operations on the account.

Properties

Name Meaning
Account ID The unique identifier of the GTM Account to retrieve.
Optional Query Parameters Additional optional parameters to customize the API request, such as flags or filters.

Output

JSON

  • accountId - The ID of the GTM Account retrieved.
  • name - The name of the GTM Account.
  • path - The API path of the GTM Account.
  • shareData - Indicates if the account shares data.
  • tagManagerUrl - URL to access the GTM Account in the Tag Manager interface.

Dependencies

  • Google Tag Manager API OAuth2 credentials

Troubleshooting

  • Missing or invalid GTM Account ID will cause the node to throw an error indicating the Account ID is required.
  • API authentication errors if the Google Tag Manager OAuth2 credentials are missing or invalid.
  • Errors from the GTM API such as permission issues or invalid parameters will be returned with descriptive messages.

Links

Discussion