Google Tag Manager (Improved) icon

Google Tag Manager (Improved)

Use the Google Tag Manager API

Client → Create Client

AI-generated

Overview

This node operation creates a new Google Tag Manager (GTM) Client within a specified GTM Account, Container, and Workspace. It is useful for managing GTM clients programmatically, allowing users to automate the creation of clients as part of their tag management workflows.

Use Case Examples

  1. Creating a new GTM Client in a specific workspace to automate client setup.
  2. Automating client creation during container setup or deployment processes.

Properties

Name Meaning
Account ID The GTM Account ID where the client will be created.
Container ID The GTM Container ID within the account where the client will be created.
Workspace ID The GTM Workspace ID within the container where the client will be created.
Optional Query Parameters Additional optional parameters to customize the client creation request, such as feature flags or specific client types.
Request Body The JSON body of the client to be created, containing the client details and configuration.

Output

JSON

  • clientId - The ID of the created GTM Client.
  • name - The name of the created GTM Client.
  • type - The type of the created GTM Client.
  • fingerprint - The fingerprint of the created GTM Client for concurrency control.
  • parameter - Parameters associated with the created GTM Client.

Dependencies

  • Google Tag Manager API OAuth2 credentials

Troubleshooting

  • Ensure that the GTM Account ID, Container ID, and Workspace ID are provided; these are required fields and missing them will cause errors.
  • Verify that the OAuth2 credentials for Google Tag Manager API are correctly set up and authorized.
  • Check the request body JSON for correct structure and required fields as per GTM API specifications.
  • Common error messages include missing required parameters (e.g., 'GTM Account ID is required') and authorization errors; resolving these involves providing the missing parameters and ensuring valid credentials.

Links

Discussion