Why connect GTM to Claude?
A GTM container grows for years: tags from old agencies, triggers nobody remembers, custom HTML no one dares to delete. Claude is good at reading a big configuration and explaining it. Through Lemonado it reads your container and versions, and checks them against conversions in GA4 and Google Ads.
All your GTM data
Accounts, containers and workspaces, ready to ask about.
Always today's numbers
Triggers and the conditions behind them, synced from GTM automatically, so answers use today's numbers.
Connect all your tools
Questions like "Why did conversions drop?" use GTM and GA4, Google Ads at once.
How to connect GTM to Claude
Before you start
- A Google Tag Manager account you can sign in to
- A Claude account
- A Lemonado account (the free trial works)
- 1
Connect Google Tag Manager in Lemonado
In Lemonado, open Connectors, find Google Tag Manager and sign in. Sign in with a Google account that has at least Read access to the GTM containers you want to audit. Pick the web container your site uses.
- 2
Turn on external access
In the company's settings, open External tools, turn the connection on, choose which sources it can reach and copy the server URL.
texthttps://mcp.lemonado.io/mcp - 3
Open Claude's connectors
Go to claude.ai and open Customize → Connectors. Click + Add, then Add custom connector.
- 4
Add Lemonado
Name it Lemonado and paste the server URL. Continue, review the sign-in settings Claude detects, and choose Sign in now.
texthttps://mcp.lemonado.io/mcp - 5
Sign in and turn it on
Approve access in the Lemonado window. Back in Claude, open a new chat and switch Lemonado on from the connectors menu.
- 6
Ask Claude about GTM
Try "Audit our GTM web container: unused tags, tags with no trigger, duplicate conversion tags and tags without consent settings. Show it as an artifact." Or ask: "What does this tag do?" or "Who changed what?"
Good to know
- Custom connectors work on Claude Free, Pro, Max, Team and Enterprise. Free accounts can add one.
- On Team and Enterprise, an owner adds the connector first under Organization settings → Connectors → Add → Custom → Web. Members then connect their own accounts.
- Remote connectors belong to your Claude account, so the same connection shows up in Claude Desktop and Cowork. Requests come from Anthropic's cloud, not your computer.
What can Claude do with GTM?
Claude reads your GTM numbers, explains what moved and turns the answer into an artifact you can share.
Audit our GTM web container: unused tags, tags with no trigger, duplicate conversion tags and tags without consent settings. Show it as an artifact.
Done. Of 84 tags, 11 are paused, 4 never fire, 2 send the same purchase event and 14 skip consent. The artifact lists each tag with a suggested fix.
Source: GTM
Explain in plain words what the custom HTML tag "cHTML - legacy checkout" does, and whether anything still depends on it.
It reads the order total from the page and pushes a purchase event for an old affiliate network. The network was removed in 2024, so nothing uses it.
Source: GTM
List every GTM version published in the last 30 days with who published it and a one-line summary of the change.
6 versions. The largest, v211 on Oct 16, added the TikTok pixel and changed the consent trigger for all marketing tags.
Source: GTM
Group our GTM tags by naming pattern and folder, and suggest a naming convention that fits what's already there.
Three naming styles are in use. The most common is "Platform - Event - Detail", used by 52 tags. 19 tags sit outside any folder.
Source: GTM
Summarize our GTM web container: how many tags of each type, which ones are paused, and which have no trigger.
84 tags: 31 GA4 events, 19 Google Ads, 12 Meta, 22 custom HTML. 9 are paused and 4 have no firing trigger, so they never run.
Source: Google Tag Manager
Google Ads conversions fell on Oct 18. Check which GTM version was published that week and what it changed.
Version 209 went live Oct 18 at 16:40 and renamed the dataLayer variable for order value. The Google Ads conversion tag still reads the old name, so it sends no value.
Source: GTM + Google Ads
Connect GTM to another AI app.
ChatGPT
Connect GTM to ChatGPT
Claude Code
Connect GTM to Claude Code
Cursor
Connect GTM to Cursor
VS Code (GitHub Copilot)
Connect GTM to VS Code (GitHub Copilot)
Codex
Connect GTM to Codex
Perplexity
Connect GTM to Perplexity
Google Antigravity
Connect GTM to Google Antigravity
Windsurf (Devin Desktop)
Connect GTM to Windsurf (Devin Desktop)
Zed
Connect GTM to Zed
n8n
Connect GTM to n8n
Other integrations for Claude
All Claude integrations- Google Analytics in ClaudeAsk Claude, ChatGPT or Cursor about GA4 traffic, conversions and funnels, next to your ad spend.
- Google Ads in ClaudeAsk Claude, ChatGPT or Cursor about your Google Ads campaigns, search terms and spend.
- Meta Ads in ClaudeAsk Claude, ChatGPT or Cursor about your Facebook and Instagram ads, creatives and results.
- Google BigQuery in ClaudeAsk Claude, ChatGPT or Cursor about your GA4 export and BigQuery tables without writing SQL.
- Attio in ClaudeAsk Claude, ChatGPT or Cursor about your Attio records, next to the campaigns that brought them in.
- Instagram organic in ClaudeAsk Claude or ChatGPT which posts and reels grow your account, and which ones to turn into ads.
Reading this as an AI agent?
Everything an agent needs to set this up, in plain text. Paste this page's link into Claude and ask it to connect you, or copy the block.
# Connect Google Tag Manager to Claude (Lemonado MCP) - Server URL: https://mcp.lemonado.io/mcp - Transport: Streamable HTTP - Auth: OAuth; the user signs in to Lemonado in the browser. No API keys. - In Lemonado: connect the GTM account and container. Sign in with a Google account that has at least Read access to the GTM containers you want to audit. Pick the web container your site uses. - In Claude: Customize → Connectors → Add custom connector ```text https://mcp.lemonado.io/mcp ``` One-click install: https://claude.ai/directory/lemonado First question to try: "Audit our GTM web container: unused tags, tags with no trigger, duplicate conversion tags and tags without consent settings. Show it as an artifact." More: https://lemonado.io/integrations/google-tag-manager · https://lemonado.io/llms.txt
Frequently Asked Questions
No. Through Lemonado, Claude reads containers, tags, triggers, variables and versions. It can suggest changes and explain why, but you make them in Tag Manager, where workspaces and approvals keep track of who did what.
No, Google doesn't run one. Community servers exist, and most can edit and publish your container, so check what you grant them. Lemonado gives Claude read-only access to your containers, next to GA4 and your ad platforms.
In Claude, open Customize → Connectors and check that Lemonado says Connected, then switch it on from the connectors menu in the chat. In Lemonado, check that Google Tag Manager is connected and External tools is on for the company. If a container is missing, your Google user needs access to it in Tag Manager > Admin > User Management. Account access alone isn't always enough.
Yes, if both are connected in Lemonado. One connection reaches every source you allow, so you can ask things like "Google Ads conversions fell on Oct 18. Check which GTM version was published that week and what it changed."
MCP is included in Lemonado's paid plans and in the free trial, so you can try it before you pay.
Still have a question?
Shoot us an email at hello@lemonado.io.
Try for freeStop fighting with data. Start feeding your AI.
Connect your data to AI and free your team from reporting and busywork.
Try Lemonado free