Marketing

Google Tag Manager MCP Server

Connect your account, then chat with AI to run tools.

Audit containers, stage conversion tags, review version history, and publish changes from chat — sign in with Google once in MCPBundles.

Best forMarketing OpsWeb AnalyticsConversion SpecialistsAgency Implementation Leads

Try this workflow

Container audit

List my Google Tag Manager accounts and containers, open the Bright Smile Co web container, and summarize every live tag — type, name, and whether it looks paused or misfiring.

Managed
25 tools
Agent guide included

Opens MCPBundles Studio with this server selected. After sign-in, chat and run tools from the same thread.

Browse all tools

What you can do with Google Tag Manager

Built for

Marketing Ops, Web Analytics Teams, Conversion Specialists, Agency Implementation Leads, MarTech Managers

Example workflows

Container audit

Baseline inventory before a site relaunch or agency handoff.

Try this

List my Google Tag Manager accounts and containers, open the Bright Smile Co web container, and summarize every live tag — type, name, and whether it looks paused or misfiring.

Add signup tracking

Common implementation task without editing site code by hand.

Try this

In the Harbor Legal container, create a custom event trigger for signups and wire a Google Ads conversion tag to it — keep changes in the workspace until I approve publish.

Compare published versions

Rollback prep when tracking breaks after a deploy.

Try this

Show version history for the Riverside Dental container and explain what changed between the last two published versions — tags added, removed, or edited.

Variable and trigger check

Debugging misfires that inflate conversion counts.

Try this

For Acme Dental's default workspace, list triggers and data layer variables tied to form submissions — flag any trigger that fires on all pages instead of the thank-you page.

Context to know first

What is Google Tag Manager MCP?

Google Tag Manager MCP connects your tag containers to AI assistants so you can audit tags, triggers, and variables, stage tracking changes in a workspace, and publish or roll back versions from chat after you sign in with Google in MCPBundles.

Who is this for?

Marketers and implementation leads who manage conversion pixels, analytics tags, and site tracking through GTM — especially when multiple containers or client accounts need fast answers.

Can an agent publish tags live?

Yes, when your connection includes publish access. Many teams stage changes in a workspace first, review the summary in chat, then ask the assistant to publish when ready — or roll back to a prior version if something breaks.

Related editorial

Google Tag Manager Workflows with AI

How AI agents can audit containers, stage conversion tags, compare published versions, and publish or roll back tracking changes from chat.

Read article

AI Skill
SKILL.md

Domain knowledge for Google Tag Manager — workflow patterns, data models, and gotchas for your AI agent.

Google Tag Manager

Manage marketing and analytics tags without editing site code: create, read, update, and delete tags, triggers, and variables; review version history and roll back; stage work in workspaces; publish container versions.

Hierarchy

Account → Container → Workspace → Tags / Triggers / Variables. Discover accounts, then containers, then the default workspace.

Read-oriented workflows

  • Audit existing setup: Enumerate accounts → enumerate containers → enumerate tags, triggers, and variables.
  • Inspect a tag: Open full tag details including parameters, conversion IDs, custom HTML content.
  • Inspect a trigger: Open full trigger details including event filters and conditions.
  • Version history: Enumerate published versions to see what changed when. Open a specific version for a full snapshot.
  • Check live config: Request version id 0 for the exact currently published definition.

Write-oriented workflows

  • Add conversion tracking: Create a custom event trigger (e.g., signup) → create a Google Ads Conversion tag linked to that trigger → publish.
  • Update existing tags: Change parameters, link new triggers, pause/unpause tags.
  • Create variables: Add dataLayer variables (v), constants (c), or User-Provided Data (awec) for enhanced conversions.
  • Update tags: Set consent (consent_status='needed') and enhanced conversions (enable_enhanced_conversion=true + user_provided_data_variable) on conversion tags.
  • Enable built-in variables: Enable Click URL, Page Path, Form ID, etc. for use in triggers.
  • Create workspace: Isolate changes in a new workspace (like a branch) before publishing.

Publish and rollback

  • Publish: Create a version from workspace and push live.
  • Rollback: Re-publish a previous version to undo bad changes.

Revert workspace drafts

  • Revert tag/trigger: Undo workspace changes before publishing — restore to last published state.

Key Concepts

  • Workspaces: Draft environments. Default workspace ID varies (enumerate workspaces to find it). Changes are staged here.
  • Tag types: awct (Google Ads Conversion), gclidw (Conversion Linker), gaawc (GA4 Config), gaawe (GA4 Event), html (Custom HTML), sp (Google Ads Remarketing).
  • Variable types: v (Data Layer), c (Constant), awec (User-Provided Data for Google Ads enhanced conversions).
  • Trigger types: customEvent, pageview, domReady, click, linkClick, formSubmission, historyChange, timer, scrollDepth, elementVisibility.
  • Parameter format: GTM API uses a specific Parameter object format: {"type": "template", "key": "keyName", "value": "theValue"}.
  • Consent settings: Tags can require specific consent types before firing (GDPR compliance).
  • Version IDs: Version id 0 refers to the live published container.

Tools in this Server (25)

Gtm Create Tag

Create a tag in a GTM workspace. Tags fire when their linked triggers evaluate to true. Common use: create a Google Ads Conversion tag (type='awct') l...

Gtm Create Trigger

Create a trigger in a GTM workspace. Triggers define when tags fire. For conversion tracking, create a 'customEvent' trigger matching a specific dataL...

Gtm Create User Provided Data Variable

Create a GTM User-Provided Data variable (type 'awec') for Google Ads enhanced conversions. Maps email and/or phone from existing Data Layer variables...

Gtm Create Variable

Create a user-defined variable in a GTM workspace. Variables hold data that tags and triggers reference. Most common: Data Layer Variable (type='v') w...

Gtm Create Workspace

Create a new workspace for isolating changes (like a branch). Work in the new workspace, then publish when ready. Free GTM accounts are limited to 3 w...

Gtm Delete Tag

Delete a tag from a GTM workspace. This is a workspace change — publish to make it live. Cannot be undone after publishing.

Gtm Delete Trigger

Delete a trigger from a GTM workspace. Will fail if any tags still reference this trigger. Remove tag links first.

Gtm Enable Built In Vars

Enable built-in variables like Page URL, Click URL, Form ID, etc. These are pre-defined by GTM and just need to be enabled to use in triggers and tags...

Gtm Get Tag

Get full details of a GTM tag including all parameters, firing triggers, consent settings, and schedule. Use this to inspect what a tag actually does ...

Gtm Get Trigger

Get full details of a GTM trigger including event filters, conditions, and type-specific settings.

Gtm Get Variable

Get full details of a GTM variable including parameters. Use before updating User-Provided Data (type 'awec') or Data Layer variables.

Gtm Get Version

Get full details of a container version — all tags, triggers, and variables at that point in time. Use version_id='0' for the latest published version...

Gtm List Accounts

List all Google Tag Manager accounts. Returns account IDs and names needed for all other GTM operations.

Gtm List Containers

List all containers in a GTM account. Returns container IDs, names, public IDs (GTM-XXXXXX), and domain names.

Gtm List Tags

List all tags in a GTM workspace. Returns tag names, types, firing triggers, and paused status. Common types: awct (Google Ads Conversion), gaawe (GA4...

Gtm List Triggers

List all triggers in a GTM workspace. Returns trigger names, types, and IDs. Common types: customEvent, pageview, domReady, click, formSubmission, his...

Gtm List Variables

List all user-defined variables in a GTM workspace. Variables hold data that tags and triggers reference (e.g., dataLayer variables, JavaScript variab...

Gtm List Versions

List all container version headers. Shows version IDs, names, descriptions, and who published them. Use to audit history or find a version ID for roll...

Gtm List Workspaces

List workspaces in a GTM container. Workspaces are draft environments where changes are staged before publishing. The default workspace is usually ID ...

Gtm Publish

Create a new container version from the workspace's current state and publish it live. This makes all staged changes (tags, triggers, variables) activ...

Gtm Revert Tag

Revert all uncommitted changes to a tag in a workspace back to the last published state.

Gtm Revert Trigger

Revert all uncommitted changes to a trigger in a workspace back to the last published state.

Gtm Set Latest Version

Rollback: re-publish a previous container version, making it the live version. Use the version history listing to pick the version ID to roll back to.

Gtm Update Tag

Update a GTM tag — rename, change parameters, link/unlink triggers, pause/unpause, set consent requirements, or wire enhanced conversions. Inspect the...

Gtm Update Trigger

Update a GTM trigger — rename, change event name, or modify filters. Changes are staged — publish the container when ready to go live.

Frequently Asked Questions

What is Google Tag Manager MCP?

Google Tag Manager MCP connects your tag containers to AI assistants so you can audit tags, triggers, and variables, stage tracking changes in a workspace, and publish or roll back versions from chat after you sign in with Google in MCPBundles.

Who is this for?

Marketers and implementation leads who manage conversion pixels, analytics tags, and site tracking through GTM — especially when multiple containers or client accounts need fast answers.

Can an agent publish tags live?

Yes, when your connection includes publish access. Many teams stage changes in a workspace first, review the summary in chat, then ask the assistant to publish when ready — or roll back to a prior version if something breaks.

What tagging work fits best in chat?

Container audits, conversion tag setup, trigger and variable reviews, version comparisons, and workspace cleanup. Complex consent or enhanced-conversion changes still benefit from a human review before publish.

How do I connect?

Open the Google Tag Manager skill page in MCPBundles and sign in with Google using the account that can view or edit your containers. Choose read-only access for audits; enable edit and publish when you want the assistant to stage and ship changes.

How do I connect Google Tag Manager to my AI agent?

Add the MCPBundles server URL to your MCP client configuration (Claude Desktop, Cursor, VS Code, etc.). The URL format is: https://mcp.mcpbundles.com/bundle/google-tag-manager. Authentication is handled automatically.

How many tools does Google Tag Manager provide?

Google Tag Manager provides 25 tools that can be called by AI agents, along with a SKILL.md that gives your AI agent domain knowledge about when and how to use them.

What authentication does Google Tag Manager require?

Google Tag Manager uses One-click sign in. Google Tag Manager requires credentials. Connect via MCPBundles and authentication is handled automatically.

Setup Instructions

Connect Google Tag Manager to any MCP client in minutes

MCP URL
https://mcp.mcpbundles.com/bundle/google-tag-manager

One-click install:

The link prefills the Add custom connector dialog — you still review the values and click Add, then Connect to complete OAuth.

Or add manually

  1. Open claude.ai → Settings → Connectors.
  2. Click the + button and choose Add custom connector.
  3. Set Name to Google Tag Manager and paste the MCP URL into Remote MCP server URL.
  4. Click Add. Google Tag Manager will appear under Not connected — select it and click Connect to complete OAuth.
Name: Google Tag Manager
Remote MCP server URL: https://mcp.mcpbundles.com/bundle/google-tag-manager
Authentication: OAuth

Custom connectors at claude.ai require a paid Claude plan (Pro, Max, Team, or Enterprise).

Ready to use Google Tag Manager?

Sign in to connect your credentials and start running tools from the chat.

Google Tag Manager MCP Server — Tag Workflows for AI Agents