# GTM Tracking Auditor

> Agency-grade Google Tag Manager audits: broken tags, GA4 and Ads gaps, Consent Mode v2, server-side checks, and reviewed fixes applied in a workspace.

GTM Tracking Auditor is a paid AI agent skill on Agensi by Andrea Camolese, in Marketing & SEO. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $2 (one-time purchase)
- Creator: [Andrea Camolese](https://www.agensi.io/creators/andrea-camolese)
- Category: [Marketing & SEO](https://www.agensi.io/skills/marketing-seo)
- Version: 1.0
- Last updated: 2026-10-25
- Security: scan passed (2026-10-13); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/gtm-tracking-auditor
- Tags: marketing, research, google-tag-manager, ga4, tracking-audit, mcp, gtm, consent-mode

## About this skill

Turns Google Tag Manager into the audits and fixes a tracking team actually delivers, on top of the free, open-source **mcp-gtm-audit** MCP server (read-only by default, opt-in write mode, never publishes).

### What it does

- **Health audit** of the live version and of pending workspaces: tags that never fire, dead variable references, Google tags without Measurement ID, GA4 events without name or parameters, Custom HTML risks, duplicated pixels, missing Consent Mode checks, orphan triggers, unused variables. Severity by data impact, with the known false positives and the fix for each code.
- **Tracking validation**: every GA4 event per Measurement ID with its parameters, ecommerce parameter gaps (purchase, begin_checkout, add_to_cart, view_item, generate_lead), Google Ads conversions and Conversion Linker, Meta pixels and CAPI deduplication, server-side detection.
- **Consent Mode v2 checklist** per tag: fires before consent, after, or gated.
- **Server-side review and migration**: the two classic breakages (hostname filters on event data the client never sends, Google tag firing after the first page_view) and a step-by-step partial rollout with a lookup table per hostname.
- **Pre-publish review**: diff of a workspace against the live version with the fields that changed and their before/after values.
- **Change sets**: with write mode, a dedicated workspace, entities created in dependency order from documented JSON shapes, diff pasted as the review document; without write mode, an importable container JSON for Admin > Import container. The user reviews in Preview, creates the version and publishes.
- **Diagnosis table**: symptom → usual cause → where to look, including two defects masking each other.
- **Client-ready tracking audit**: structure, honest framing, impersonal voice, actions outside GTM listed separately. A bundled script turns the audit JSON into Markdown tables.

### Ground rules the skill enforces

Audit what is live first, then what is about to be. Severity is about data, not tidiness. Static rules say what is configured, not what fires: runtime confirmation is named when it matters. One change set, one named workspace, never the Default Workspace, never publish. Read the entity shape before writing. Respect the API quota. Say what was not checked.

### Where it comes from

Built from real agency engagements: retail container migrations, utilities moving to server-side tagging, B2B sites whose events vanished on a date nobody noticed. Works in Claude Code, Cursor, Codex CLI and any agent that reads SKILL.md and connects to MCP servers.

### Requirements

The **mcp-gtm-audit** MCP server (https://github.com/acamolese/gtm-audit-mcp, MIT, `pipx install mcp-gtm-audit`) connected to the agent, with Tag Manager access to the container. Write mode needs the server started with `GTM_ALLOW_WRITE=1`. No credentials in the skill. One bundled Python standard-library script that reads the audit JSON locally: no network, no environment variables.

## Requires

- Gtm Audit MCP
- Python

## Known limitations

Static analysis of the container: it sees what is configured, not what fires at runtime (dataLayer, CMP, race conditions), so the skill names what still needs confirming in GTM Preview or GA4 DebugView. Read-only unless the MCP server is started in write mode; even then it only changes workspaces and never creates a version or publishes. The site's own gtag or pixel snippets, GA4 property settings and Google Ads settings are outside the container and are listed as actions for the user. The Tag Manager API meters writes tightly: change sets are a handful of entities, not a container rebuild.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the GTM Tracking Auditor skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill differ from simply asking a standard LLM to write GTM tags?

This skill uses a specialized MCP (Model Context Protocol) server to bridge your AI agent with the live GTM API, allowing it to read your actual container JSON, identify schema errors, and draft real-time fixes. Proprietary prompts alone can't 'see' your workspace or verify if triggers are correctly configured.

### Which AI agents or platforms are compatible with this skill?

Any agent that reads SKILL.md and can call MCP tools: Claude Code, Claude Desktop, Cursor, Codex CLI and others. It needs the free mcp-gtm-audit MCP server installed (pipx install mcp-gtm-audit), authorized once with your Google account through OAuth (read-only scope by default), and Python 3.10+ for the bundled summary script.

### Can the agent automatically push changes live to my website?

No. With write mode on, the agent creates or changes tags, triggers and variables inside a dedicated workspace, never the Default Workspace, and the MCP server has no publish and no version tool: the publish OAuth scope is never requested. Every change set ends with the same step: review in GTM Preview, create the version and publish from the GTM UI yourself. Without write mode, the agent delivers the same changes as an importable container JSON.

### Does this skill help with GDPR and Consent Mode v2 compliance?

It checks the facts: whether a consent default command runs on Consent Initialization, how long tags wait for the CMP (wait_for_update), whether ads_data_redaction and url_passthrough are set, which tags carry Additional Consent Checks, and which marketing tags fire on All Pages without a consent condition. The report lists every tag as "fires before consent", "after consent" or "gated". The legal reading of those facts stays with you or your DPO.

### What exactly is included in the purchase of this skill?

A SKILL.md with the routing between eight playbooks (health audit, tracking validation, Consent Mode v2, server-side review and migration, pre-publish review, change set, diagnosis, client report), seven reference files with the method behind each one (tool cheat sheet, audit rules with false positives and fixes, GA4/Ads/Meta/consent/server-side checks, JSON shapes for tags, triggers and variables, a symptom-to-cause diagnosis table, the client report structure), and one Python script that turns the audit JSON into Markdown tables. The MCP server itself is a separate, free, open-source project.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
