Integrations

Google Tag Manager

64 tools for Google Tag Manager: accounts, containers, workspaces, tags, triggers, variables, versions and publishing. Tag Manager is where conversion tracking quietly breaks, with a duplicated tag, a trigger that stopped firing or a container never published, and this connection lets Claude diagnose and fix those in the same conversation.

What you can do

Claude can inspect a container end to end and build new pieces from a plain-language description instead of the tag configuration UI. The builder tools know the shape of a GA4 event tag, a Google Ads conversion tag, a Meta Pixel, a LinkedIn Insight tag, a TikTok Pixel and a Microsoft Clarity snippet, so "add a Google Ads conversion for the thank-you page" turns into the right tag and the right trigger without you filling in the template by hand.

  • Audit a container for paused, duplicate or unused tags and triggers
  • Build tags for GA4, Google Ads conversions and remarketing, Meta Pixel, LinkedIn Insight, TikTok Pixel and Microsoft Clarity
  • Create triggers for page views, clicks, link clicks, form submissions, scroll depth and custom events
  • Create data layer, URL, constant and custom JavaScript variables
  • Manage workspaces, create versions, publish, and roll back to an earlier version
  • Set up GA4 basics or a Google Ads conversion in one call with the setup tools

Why this matters for tracking accuracy

A container that looks fine in the GTM interface can still be firing a tag twice, missing a trigger condition, or sitting unpublished in a workspace while everyone assumes it went live. These are pattern-recognition problems, and Claude is good at them once it can actually read the container rather than a screenshot of it.

  • Monthly container audits before a discrepancy shows up in a client report
  • Fast tag builds for a new conversion event across every ad platform at once
  • Cleanup of tags left over from a platform the account no longer uses
  • Confirming that what is in the live version matches what is in the workspace

Connect the account

GTM rides the same Google sign-in as GA4, Search Console and Google Ads. When you grant Tag Manager access during the Google authorisation, Claude can read and edit any container the identity has permission on.

  1. Authorise Google with Tag Manager included

    From Connections, choose Google Tag Manager. The Google consent screen lists the Tag Manager scopes alongside any others; leave them ticked. If you connected Google earlier and unticked Tag Manager, reconnect and include it.

  2. Choose the Google identity that has container access

    GTM permissions are granted per user per container. Sign in with the Google account that already appears under Admin → User Management for the container; another Google identity on the same machine will authorise successfully and see no containers.

  3. Confirm the accounts and containers

    The dashboard lists the GTM accounts and containers the identity can reach, with the permission level on each. Publish rights are separate from edit rights in GTM, so check the level if you intend to publish through Claude.

  4. Ask for something real

    A read-only audit that exercises accounts, containers, tags and triggers in one go.

    Try this first
    List my GTM containers, then audit the main one: find
    paused or unused tags, tags without a trigger, and tell
    me whether the workspace has unpublished changes.

Representative tools

Generated from the live server registry. These are real tool names Claude can call today; the full list is in the reference.

gtm_audit_containergtm_list_tagsgtm_build_ga4_event_taggtm_build_google_ads_conversion_taggtm_build_form_submit_triggergtm_publish_workspace_now

Safety on this platform

Careful

Nothing Claude builds reaches your website until a version is published, and publishing is its own tool that runs only when you ask for it. Edits accumulate in the workspace exactly as they would in the interface, so you can review them there before publishing. Rollback to an earlier version is available if a publish turns out to be wrong.

Troubleshooting

  • No containers are listed after connecting: the Google identity you authorised is not a user on the container. Check Admin → User Management in GTM for the identity, or reconnect with the one that is there. Having access to the GA4 property does not grant access to the container.
  • Tags can be created but publishing fails: your GTM permission on the container is Edit or Approve, not Publish. Ask the container admin to raise it, or publish from the interface after reviewing the workspace.
  • A built tag references a variable that does not exist: the builder tools assume common data layer variable names. Ask Claude to list variables first and either create the missing one or point the tag at the one the site actually uses.
  • The audit reports duplicates that are intentional: two tags with the same type and the same trigger look identical to the audit. If they differ only in a parameter such as a conversion label, that is fine; tell Claude which to keep and it will leave the other alone.

Go further

Common questions

Does connecting GTM also connect GA4?

They are separate scopes on the same Google sign-in. Most people grant both at once because tracking work needs both, but you can grant one without the other, and the dashboard shows which are active.

Will Claude publish changes automatically?

No. Building tags, triggers and variables edits the workspace. Publishing a version is a separate tool that runs only when you ask, so you can review the workspace in the GTM interface first.

Can it work on a server-side container?

The API surface is the same for web and server containers, so listing, reading and editing work. The builder tools are written for web container tag types; for server tags, describe the tag and Claude will use the generic create tool.

What if I connected Google before and did not include Tag Manager?

Reconnect from the Google Tag Manager card in Connections. The consent screen will ask only for the missing scopes, and the existing GA4 and Google Ads grants are unaffected.

Ready to connect?

Start free, connect the platforms you use, and run your first workflow from Claude in minutes.