Introducing Dench MCP
Google Tag Manager logo

Integrate Google Tag Manager with your AI CRM

Google Tag Manager provides programmatic administration of accounts, containers, workspaces, tags, triggers, variables, versions, publishing, and user permissions.

Explore Triggers and Actions

Bulk Update Workspace

Apply multiple typed entity additions, updates, or deletions to a Google Tag Manager workspace in one request without publishing the workspace. Changes can permanently delete workspace entities and cannot be safely rolled back as a single operation.

ActionTry it

Combine Containers

Warning: This method is no longer supported and will soon be removed. Irreversibly merge another container's configuration into an existing target Google Tag Manager container. This broad-impact operation mutates the target and has no safe automatic rollback; it may also enable the target's user-permissions feature when explicitly allowed. Verify both containers and the setting source, and use disposable or backed-up resources.

ActionTry it

Create Container

Create a Google Tag Manager container under an account.

ActionTry it

Create Container Version

Create a Google Tag Manager container version from a workspace and make it the synchronization base without publishing it live. On successful version creation, GTM deletes the source workspace and may return a replacement workspace as new_workspace_path. Do not call this on a workspace that must remain at its current path. The exact JSON body is the root version-options object with required name and optional notes fields; it is not wrapped in another property. Compiler errors, synchronization errors, and merge conflicts are surfaced as failed actions even if the API returns HTTP 200.

ActionTry it

Create Environment

Create a Google Tag Manager user environment, optionally linked to either a workspace or a container version.

ActionTry it

Create User Permission

Grant a user broad Google Tag Manager account and container access. This is a sensitive access-control operation that can assign account admin and container edit, approve, or publish privileges; use it only for an explicitly authorized email address and reviewed container IDs.

ActionTry it

Create Workspace

Create an isolated Google Tag Manager workspace in a container for staging configuration changes.

ActionTry it

Create Workspace Entity

Create one strictly typed client, folder, Google tag configuration, tag, custom template, transformation, trigger, variable, or zone in a Google Tag Manager workspace without publishing it.

ActionTry it

Delete Container

Permanently delete a Google Tag Manager container and all of its configuration. This operation has no API confirmation step or undo.

ActionTry it

Delete Container Version

Archive/delete a stored Google Tag Manager container version. The operation has no confirmation step and makes the version unavailable until a separate undelete action restores it.

ActionTry it

Delete Environment

Permanently delete a user-created Google Tag Manager USER environment. System LIVE, LATEST, and WORKSPACE environments cannot be deleted, and this operation has no confirmation step or undo.

ActionTry it

Delete User Permission

Remove the user identified by a Google Tag Manager user-permission path from the account, immediately revoking that user's access to the account and all of its containers. This destructive access revocation has no confirmation step.

ActionTry it

Delete Workspace

Permanently delete a Google Tag Manager workspace and all of its unpublished changes. This destructive operation has no API confirmation step or undo.

ActionTry it

Delete Workspace Entity

Delete one client, folder, Google tag configuration, tag, custom template, transformation, trigger, variable, or zone from a Google Tag Manager workspace. This destructive staged change can affect a later published container version; only delete entities created or explicitly selected by the caller.

ActionTry it

Disable Built-In Variables

Disable one or more built-in variable types in a Google Tag Manager workspace. This destructive operation removes those variables from the workspace without a confirmation step.

ActionTry it

Enable Built-In Variables

Enable one or more provider-defined built-in variable types in a Google Tag Manager workspace.

ActionTry it

Get Account

Get one GTM account by its API-relative path.

ActionTry it

Get Container

Get one GTM container by path, including its configuration metadata, feature flags, tag IDs, and current fingerprint.

ActionTry it

Get Container Snippet

Return the installation snippet for a GTM container without changing it.

ActionTry it

Get Container Version

Get a complete GTM container version snapshot by path, including every nested entity family returned by Google Tag Manager.

ActionTry it

Get Destination

Warning: This method is no longer supported and will soon be removed. Get one linked Google tag destination by its GTM API-relative path.

ActionTry it

Get Environment

Get one GTM environment, including its authorization metadata, linked container version or workspace, preview settings, and fingerprint.

ActionTry it

Get Latest Version Header

Get the latest GTM container-version header for synchronization context, including its version ID, deletion state, and entity counts.

ActionTry it

Get Live Container Version

Get the currently published live GTM container version, including every nested entity family returned by Google Tag Manager.

ActionTry it

Get User Permission

Get one user's GTM account and container access by permission path.

ActionTry it

Get Workspace

Get one GTM workspace by path, including its current fingerprint.

ActionTry it

Get Workspace Entity

Get one selected client, folder, Google tag config, tag, template, transformation, trigger, variable, or zone by its GTM API-relative path.

ActionTry it

Get Workspace Status

Return modified entities and merge conflicts in a GTM workspace before synchronization or version creation.

ActionTry it

Import Template From Gallery

Import an exact Community Template Gallery repository revision into a Google Tag Manager workspace after explicitly acknowledging its requested permissions. Omit gallery_sha only when the provider's latest revision is intended.

ActionTry it

Link Destination

Move a Google tag destination from its currently linked container to a target GTM container. This broad-impact, irreversible relink causes all future events from the target source container to be sent to the destination, stops the previous container from being its source, and may enable user-permission support when explicitly allowed. Verify both the destination and target container before calling. Google has deprecated this provider method.

ActionTry it

List Accounts

List GTM accounts visible to the connected user, one page at a time.

ActionTry it

List Built-In Variables

List enabled built-in variables in a workspace one page at a time.

ActionTry it

List Container Version Headers

List lightweight GTM container-version headers one page at a time, optionally including deleted versions.

ActionTry it

List Containers

List GTM containers under an account with paths, public IDs, fingerprints, and capability flags, one page at a time.

ActionTry it

List Destinations

List all destinations linked to a GTM container. The provider exposes no continuation input, so this returns one provider response.

ActionTry it

List Environments

List GTM environments in a container one page at a time.

ActionTry it

List Folder Entities

List the tags, triggers, and variables contained in one Google Tag Manager folder, one page at a time.

ActionTry it

List User Permissions

List users with access to a GTM account and their account- and container-level permissions one page at a time. Results include sensitive user email addresses.

ActionTry it

List Workspace Entities

List one selected GTM workspace entity family: clients, folders, Google tag configs, tags, templates, transformations, triggers, variables, or zones.

ActionTry it

List Workspaces

List GTM workspaces in a container with paths and fingerprints, one page at a time.

ActionTry it

Look Up Container

Find one Google Tag Manager container by exactly one tag ID or destination ID.

ActionTry it

Move Container Tag ID

Move a tag ID out of a GTM container into a newly created Google tag. This deprecated, irreversible container-level operation removes the ID from the source container across its workspaces and associated configuration; it is not scoped to one workspace. It can also copy tag settings, users, and accepted terms, and may enable user-permission support.

ActionTry it

Move Entities To Folder

Move selected tags, triggers, and variables into a Google Tag Manager folder, or move them out of folders by targeting folder ID 0.

ActionTry it

Publish Container Version

Publish a specific Google Tag Manager container version to live traffic immediately. This is not a preview: it changes production tagging and has irreversible live impact for traffic processed before any later rollback. Verify the exact version and its fingerprint before publishing. A Google compiler error is surfaced as a failed action even when the API returns HTTP 200.

ActionTry it

Quick Preview Workspace

Create a temporary Google Tag Manager container version from all entities in a workspace for preview without publishing it to live traffic. Compiler errors, synchronization errors, and merge conflicts are returned as failed actions rather than successful previews.

ActionTry it

Reauthorize Environment

Reauthorize a Google Tag Manager environment and rotate its authorization metadata for preview or debug use. This is a broad-impact, irreversible operation: the existing authorization code can become invalid immediately, breaking clients that still use it.

ActionTry it

Resolve Workspace Conflict

Resolve one Google Tag Manager workspace merge conflict by replacing the conflicted entity with exactly one complete, typed Entity resolution. Use the entityInWorkspace fingerprint from the conflict to prevent a concurrent overwrite.

ActionTry it

Resolve Workspace Conflicts

Sequentially resolve 1-25 Google Tag Manager workspace merge conflicts. Each successful item mutates workspace state without publishing it, so partial success is possible. Processing stops after the first failed or unknown provider outcome, and all later items are marked not_attempted.

ActionTry it

Revert Built-In Variable

Revert one built-in variable type in a Google Tag Manager workspace to its latest synchronized base state. This permanently discards current workspace changes to that variable and may leave it enabled or disabled, as reported in the result.

ActionTry it

Revert Workspace Entity

Revert a client, folder, tag, template, transformation, trigger, variable, or zone to its latest synchronized base state without publishing it. Current workspace changes to the entity are permanently discarded, and an entity absent from the base may be removed.

ActionTry it

Set Latest Container Version

Set a stored Google Tag Manager container version as the latest base used when synchronizing workspaces and detecting conflicts or errors. This changes workspace synchronization state only; it does not publish the version or change the container version serving live traffic.

ActionTry it

Sync Workspace

Synchronize a Google Tag Manager workspace to the latest container version. GTM updates unmodified workspace entities to the latest version and returns conflicts for modified entities. A response containing conflicts is still a successful synchronization, but no container version can be created until all conflicts are resolved.

ActionTry it

Undelete Container Version

Restore a previously deleted Google Tag Manager container version.

ActionTry it

Update Account

Update one or more editable Google Tag Manager account fields, optionally requiring the latest fingerprint to prevent a concurrent overwrite.

ActionTry it

Update Container

Update one or more editable Google Tag Manager container fields, optionally requiring the latest fingerprint to prevent a concurrent overwrite.

ActionTry it

Update Container Version

Update one or more editable metadata or content fields of a stored Google Tag Manager container version, optionally requiring its latest fingerprint to prevent a concurrent overwrite.

ActionTry it

Update Environment

Update one or more writable Google Tag Manager environment fields. Non-user environments permit only debug and preview URL changes; an optional current fingerprint prevents concurrent overwrite.

ActionTry it

Update User Permission

Replace an existing user's Google Tag Manager account and container access. This can immediately grant or revoke account administration and container read, edit, approve, or publish capabilities. The supplied access is a complete replacement, so verify the current permission first and include every container grant that must remain. This can lock the affected user, including yourself, out of the account or its containers.

ActionTry it

Update Workspace

Update one or more editable Google Tag Manager workspace metadata fields, optionally requiring the latest fingerprint to prevent a concurrent overwrite.

ActionTry it

Update Workspace Entity

Update one strictly typed client, folder, Google tag configuration, tag, custom template, transformation, trigger, variable, or zone in a Google Tag Manager workspace, optionally guarded by its latest fingerprint. This stages the change but does not publish it.

ActionTry it

How the Google Tag Manager integration works

The Google Tag Manager integration connects Dench directly to Google Tag Manager, so agents can read and act on your Google Tag Manager data as part of everyday work — answering questions in chat, keeping your CRM in sync, and running automations without anyone copying data between tools.

60 actions are available for agents to invoke on your behalf. Every call runs through Google Tag Manager's own authorization, scoped to the account you connect.

Set up Google Tag Manager in Dench

  1. 1

    Sign in to your Dench workspace and open Integrations.

  2. 2

    Find Google Tag Manager and click Connect — you'll authorize access through Google Tag Manager's own sign-in flow. No API keys or code required.

  3. 3

    Ask an agent to use Google Tag Manager in chat, or call it from an automation.

  4. 4

    Manage or disconnect the connection any time from workspace settings.

Frequently asked questions

How does the Google Tag Manager integration work with Dench?

The Dench Google Tag Manager integration connects your AI CRM to Google Tag Manager, so AI agents can work with your Google Tag Manager data as part of chats, automations, and CRM workflows. You connect your account once, and every agent in your workspace can use it — governed by your workspace permissions.

What actions can AI agents perform with Google Tag Manager via Dench?

The Google Tag Manager integration currently exposes 60 actions, including Bulk Update Workspace, Combine Containers, Create Container, Create Container Version, Create Environment, and Create User Permission. Agents invoke them on your behalf from chat or from automations.

Do I need to write code to connect Google Tag Manager to Dench?

No. You connect Google Tag Manager from your Dench workspace using Google Tag Manager's own sign-in and authorization flow — no API keys to copy, no glue code to maintain.

Is the Google Tag Manager integration secure?

Connections are authorized through Google Tag Manager's own authentication flow, and Dench stores only the authorization needed to act on your behalf. You can review and disconnect the Google Tag Manager connection from your workspace settings at any time.