# gtm-audit

Inspects Google Tag Manager web containers for orphan tags, duplicate GA4 tracking, and Consent Mode gaps via Cogny MCP.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · ★ 111
- Author: Cogny AI
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/cognyai/claude-code-marketing-skills/tree/HEAD/skills/gtm-audit/SKILL.md
- Updated: 2026-10-12
- HTML: https://affpapa.org/en/nevibecode/skills/gtm-audit

## What it does

Tracking setups rarely break loudly. Instead, problems hide as duplicate GA4 configs counting conversions twice, or tags missing a trigger that sit idle forever. This skill scans Google Tag Manager web containers through its API, flagging paused tags, unassigned variables, and missing conversion labels.

The skill queries the selected workspace via Cogny MCP gateway tools. It checks trigger coverage to see if tags actually fire, inspects Data Layer references, and reviews Consent Mode settings. If connected, it also validates measurement IDs and pixels against live Google Analytics 4, Google Ads, Meta, TikTok, or Segment accounts.

Without a paid Cogny Agent subscription at $9 per month, this skill cannot read any container data. It relies entirely on the HTTP endpoint `https://app.cogny.com/mcp` defined in `.mcp.json`, meaning you must authenticate before running audits.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add cognyai/claude-code-marketing-skills --skill gtm-audit -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/gtm-audit/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/gtm-audit/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add cognyai/claude-code-marketing-skills --skill gtm-audit -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/gtm-audit/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add cognyai/claude-code-marketing-skills --skill gtm-audit -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/gtm-audit/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install cognyai/claude-code-marketing-skills gtm-audit
```

2. **Manually: put the files in place**
- File: `.github/skills/gtm-audit/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add cognyai/claude-code-marketing-skills --skill gtm-audit -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/cognyai/claude-code-marketing-skills --path skills/gtm-audit
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/gtm-audit/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add cognyai/claude-code-marketing-skills --skill gtm-audit -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/cognyai/claude-code-marketing-skills/tree/HEAD/skills/gtm-audit/SKILL.md

## When to use it
- Detect duplicate GA4 configuration tags that double-count events
- Find orphaned tags with missing firing triggers
- Flag unreferenced variables and missing Data Layer definitions
- Verify conversion IDs and pixels against connected ad platforms
- Inspect tag setup for Consent Mode coverage

## Example prompts
- /gtm-audit
- /gtm-audit tags
- /gtm-audit consent

## Similar
- [seo-audit](https://affpapa.org/en/nevibecode/skills/coreyhaines31-seo-audit.md) — skill · 238500 installs
- [programmatic-seo](https://affpapa.org/en/nevibecode/skills/coreyhaines31-programmatic-seo.md) — skill · 150800 installs
- [copy-editing](https://affpapa.org/en/nevibecode/skills/coreyhaines31-copy-editing.md) — skill · 149800 installs
- [marketing-ideas](https://affpapa.org/en/nevibecode/skills/coreyhaines31-marketing-ideas.md) — skill · 147400 installs
- [sales-enablement](https://affpapa.org/en/nevibecode/skills/sales-enablement.md) — skill · 119400 installs
- [revops](https://affpapa.org/en/nevibecode/skills/revops.md) — skill · 114000 installs

From the same set: [cognyai/claude-code-marketing-skills](https://affpapa.org/en/nevibecode/by/cognyai/claude-code-marketing-skills.md) — 58 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
