Skip to main content
skill CX Codex

gtm-audit — Claude Code skill: what it does, how to install

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add cognyai/claude-code-marketing-skills --skill gtm-audit -a claude-code
Open on GitHub

What gtm-audit 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.

What it helps with

  • 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 for the agent

  • /gtm-audit
  • /gtm-audit tags
  • /gtm-audit consent

How to install gtm-audit

1Skills CLI (Vercel)

npx skills add cognyai/claude-code-marketing-skills --skill gtm-audit -a claude-code

2Manually: put the files in place

~/.claude/skills/gtm-audit/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/gtm-audit/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about gtm-audit

How do I install gtm-audit in Claude Code?

Run npx skills add cognyai/claude-code-marketing-skills --skill gtm-audit -a claude-code. The skill file is placed in ~/.claude/skills/gtm-audit/SKILL.md.

What does gtm-audit do?

It audits Google Tag Manager web containers to catch broken triggers, duplicate GA4 setups, paused tags, and Consent Mode misconfigurations.

What are the requirements to run gtm-audit?

You need a Cogny Agent subscription at $9 per month and an HTTP server entry for cogny pointing to https://app.cogny.com/mcp inside your .mcp.json. Google Tag Manager must also be connected in Cogny.

Similar skills

All skills for Marketing and content →

From the same set58

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor