PlugsightDocs

Google Tag Manager

Connect Google Tag Manager so your AI can list your tags, triggers and versions and audit your tracking for common problems.

Connect Google Tag Manager and your AI can read every container your Google login can open: tags, triggers, variables and version history. It can also audit a container for common tracking problems. Plugsight only reads: it never edits, publishes or deletes anything.

Google is still reviewing the Tag Manager permission. Until Google approves it, Google Tag Manager isn't offered to everyone and may not appear in your Connector catalog.

What your AI can do

  • List containers: every container with its GTM id (GTM-…), account, and where it's used.

  • Read a container: everything in the published (live) version: each tag with its type, the triggers it fires on and whether it's paused, plus every trigger and variable.

  • Read one tag in full: its settings (measurement or conversion ids, event names, parameters), its triggers and its blocking triggers.

  • Audit a container: checks the live version for

    • tags with no firing trigger, which never run (high)
    • Universal Analytics tags, which collect nothing since Google retired UA (high)
    • paused tags (medium)
    • possible duplicates: tags of the same type with the same id, which can double-count (medium)
    • triggers no tag uses, and variables nothing refers to (low)
    • Custom HTML tags, to check they're still needed

    It also lists changes waiting unpublished in workspaces.

  • Version history: published versions, newest first, with how many tags, triggers and variables each had (up to 100).

Example questions

  • "Audit our GTM container and tell me what to fix first."
  • "Are any of our conversion tags firing twice?"
  • "Which GA4 measurement id does the GA4 config tag send to?"
  • "How many tags, triggers and variables did each of the last five published versions have?"
  • "Are there unpublished changes waiting in any workspace?"

What you need

  • A Pro or Agency plan. See Plans.
  • A Google account with access to your Tag Manager containers.

Connect Google Tag Manager

  1. Open Connections and click Add connection.
  2. Choose Google Tag Manager.
  3. Read What happens next and click Continue to Google.
  4. Choose the Google account that can see your containers.
  5. If Google says "Google hasn't verified this app", click Advanced, then Go to Plugsight (unsafe).
  6. Google asks: "View your Google Tag Manager container and its subcomponents". Tick the box and continue.
  7. You're back on Connections, with a message such as "Connected you@example.com: 2 Tag Manager containers."

Then add the connection to an MCP server and refresh the tools list in your AI app.

To choose which containers your AI can see, click Show sites & accounts next to the connection. See Choose which sites and accounts your AI can see.

What it can and can't change

Tag Manager is read-only, and Google's permission is read-only too. Your AI can't add, edit, pause or publish tags.

Limits

  • Container contents, tags and audits come from the published version. Drafts in workspaces are only listed as pending changes in the audit.
  • If you have one container, your AI uses it without asking. With several, it needs the GTM id or name.

Troubleshooting

This Google service is coming soon.

What it means: Google hasn't finished reviewing the permission, so Tag Manager isn't open to everyone yet.

How to fix it: Nothing to do for now. It will appear in the Connector catalog once Google approves it.

No tag "…" in the published version of GTM-…. Use tag_manager_container to list them.

What it means: The tag name or id wasn't found in the live version. It may only exist in a draft.

How to fix it: Ask your AI to list the container's tags first, then pick one.

This MCP reaches 3 containers; pass one of: …

What it means: You have several containers and your AI didn't say which.

How to fix it: Name the container in your question, for example "in GTM-ABC123".

This MCP reaches no Google Tag Manager container.

What it means: The connection isn't in this MCP server, or every container is hidden.

How to fix it: Check the MCP server reaches the connection, and that the container shows Visible.

Google Tag Manager access wasn't granted. Tick the permission and try again.

What it means: The permission box on Google's screen wasn't ticked.

How to fix it: Connect again and tick the box.

For other sign-in messages, see the troubleshooting section of Google Ads.