Connect
GTM to
n8n
- Can it run every morning?
https://mcp.lemonado.io/mcpBuild n8n workflows that use your GTM data to find what a new version changed on a schedule, and post the result where your team works. Lemonado connects them in about 5 minutes with one Lemonado token.
https://mcp.lemonado.io/mcpWhy connect GTM to n8n?
n8n runs on triggers and schedules, so a question you ask once can become a check that runs every morning. Connected through Lemonado, it reads your GTM tags, triggers, variables and versions, so it can find what a new version changed with today's numbers.
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 n8n
Before you start
- A Google Tag Manager account you can sign in to
- n8n installed
- 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
Create a token in Lemonado
In External tools, open your connection's guide, choose n8n, pick an expiry and click Generate Token. Copy it.
- 4
Add the MCP Client Tool
In your workflow, add an AI Agent node, then add an MCP Client Tool under its tools. Use node version 1.1 or later; version 1 only speaks SSE.
- 5
Configure it
Set the endpoint to the server URL, the transport to HTTP Streamable (pick it yourself on node version 1.1, which defaults to SSE) and authentication to Bearer Auth. Create a Bearer Auth credential and paste the raw token, without a "Bearer " prefix.
texthttps://mcp.lemonado.io/mcp - 6
Test and save
Test the connection, save the workflow and ask the agent about your data.
- 7
Ask n8n about GTM
Try "Every morning at 8, check yesterday's GTM numbers and post anything unusual to #marketing." Or ask: "What changed in GTM today?" or "Weekly container clean-up list"
Good to know
- If the MCP Client Tool only shows an SSE Endpoint field, it's the version 1 node: replace it with a newer one. Keep the /mcp URL and choose HTTP Streamable.
- Regenerating a token in Lemonado invalidates the old one, so update n8n when you do.
What can n8n do with GTM?
n8n's AI Agent reads your GTM data on a trigger or a schedule, then posts, logs or files the result in the next node.
Every morning at 8, check yesterday's GTM numbers and post anything unusual to #marketing.
Running daily. Today's post flagged one change against the 7-day average, with the number and a link to the source.
Source: Google Tag Manager
Every morning, check for GTM versions published in the last 24 hours and post what changed, and who published it, in #tracking.
One version yesterday: v214 added a Reddit pixel on all pages. Posted to #tracking.
Source: Google Tag Manager
Each Monday, list GTM tags that are paused, have no trigger or skip consent settings, and send it to #tracking.
This week: 11 paused, 4 without a trigger, 14 without consent settings. Sent to #tracking.
Source: Google Tag Manager
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
Compare the live GTM version with the one before it. What tags, triggers or variables changed?
Version 212 edited the purchase trigger to fire on /thank-you only. Checkout now ends on /order-complete, so the purchase tags stopped firing.
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.
Claude
Connect GTM to Claude
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
Other integrations for n8n
All n8n integrations- Google Analytics in n8nAsk Claude, ChatGPT or Cursor about GA4 traffic, conversions and funnels, next to your ad spend.
- Google Ads in n8nAsk Claude, ChatGPT or Cursor about your Google Ads campaigns, search terms and spend.
- Meta Ads in n8nAsk Claude, ChatGPT or Cursor about your Facebook and Instagram ads, creatives and results.
- Instagram organic in n8nAsk Claude or ChatGPT which posts and reels grow your account, and which ones to turn into ads.
- Pinterest Ads in n8nAsk Claude or ChatGPT which pins get saved, clicked and bought.
- Snapchat Ads in n8nAsk Claude or ChatGPT which Snapchat ads get swipes and which ones sell.
Reading this as an AI agent?
Everything an agent needs to set this up, in plain text. Paste this page's link into n8n and ask it to connect you, or copy the block.
# Connect Google Tag Manager to n8n (Lemonado MCP) - Server URL: https://mcp.lemonado.io/mcp - Transport: Streamable HTTP - Auth: Bearer token the user generates in Lemonado (External tools → n8n) - 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 n8n: AI Agent → MCP Client Tool ```text https://mcp.lemonado.io/mcp ``` First question to try: "Every morning at 8, check yesterday's GTM numbers and post anything unusual to #marketing." More: https://lemonado.io/integrations/google-tag-manager · https://lemonado.io/llms.txt
Frequently Asked Questions
Yes, through Lemonado. Connect your GTM account and container in Lemonado, add Lemonado as an MCP Client Tool on an n8n AI Agent node, and n8n can find what a new version changed with your live data.
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 n8n read-only access to your containers, next to GA4 and your ad platforms.
Use Test step on the MCP Client Tool. A 401 means the token expired or was regenerated, so paste a new one into the Bearer credential. 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