一键导入
gtm-audit
Google Tag Manager container audit — tag health, orphaned and paused tags, duplicate GA4 config, trigger coverage, Consent Mode, naming, workspace hygiene
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Google Tag Manager container audit — tag health, orphaned and paused tags, duplicate GA4 config, trigger coverage, Consent Mode, naming, workspace hygiene
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Submit an AI agent to the agentlaunch directory and upvote agents via a public no-auth REST API
Comprehensive Google Ads account audit — campaign structure, budget pacing, conversion tracking, wasted spend — across every campaign type, ranked by estimated $ impact
Google Ads Demand Gen audit — audience strategy, creative format diversity, creative freshness, placements, CPA vs goal
Google Analytics 4 configuration and data-quality audit — key events, data streams, custom dimensions, attribution, retention, PII, Ads link, BigQuery export
Build a GA4 measurement plan from a site URL — event taxonomy, parameters, custom dimensions, and key events to mark as conversions
Weekly GA4 check — sessions, users, key-event conversions, revenue, channel mix — with week-over-week deltas and tracking-break alerts
| name | gtm-audit |
| description | Google Tag Manager container audit — tag health, orphaned and paused tags, duplicate GA4 config, trigger coverage, Consent Mode, naming, workspace hygiene |
| version | 1.0.0 |
| author | Cogny AI |
| requires | cogny-mcp |
| platforms | ["google-tag-manager"] |
| user-invocable | true |
| argument-hint | [full|tags|triggers|consent] |
| allowed-tools | ["mcp__cogny__google_tag_manager__tool_list_accounts","mcp__cogny__google_tag_manager__tool_list_containers","mcp__cogny__google_tag_manager__tool_list_tags","mcp__cogny__google_tag_manager__tool_list_triggers","mcp__cogny__google_tag_manager__tool_list_variables","mcp__cogny__google_tag_manager__tool_get_tag","mcp__cogny__google_tag_manager__tool_get_trigger","mcp__cogny__google_tag_manager__tool_get_variable","mcp__cogny__google_tag_manager__tool_get_workspace_status","mcp__cogny__google_tag_manager__tool_search_tags","mcp__cogny__create_finding","WebFetch","WebSearch"] |
A one-time audit of a Google Tag Manager container. GTM rarely fails loudly — it fails as a duplicate GA4 tag double-counting conversions, a tag with no trigger that never fires, or analytics tags firing before consent. This skill reads the container and finds those.
Requires: Cogny Agent subscription ($9/mo) — Sign up
If mcp__cogny__google_tag_manager__tool_list_containers is not available:
This skill requires Cogny's Google Tag Manager MCP server.
1. Sign up at https://cogny.com/agent
2. Connect your GTM account
3. Add Cogny to your .mcp.json (see the repo README)
4. Restart Claude Code
Stop here if the tools are missing.
/gtm-audit — full container audit
/gtm-audit tags — tag health only
/gtm-audit triggers — trigger coverage only
/gtm-audit consent — Consent Mode wiring only
tool_list_accounts
tool_list_containers (account_id)
If multiple containers exist, ask which to audit. Note the container type (web vs server) — this audit targets web containers.
tool_list_tags (account_id, container_id, workspace_id)
For tags that need detail, call tool_get_tag. Bucket every tag by type (GA4 config,
GA4 event, Google Ads conversion, Google Ads remarketing, Floodlight, custom HTML,
third-party).
Flag:
tool_list_triggers (account_id, container_id, workspace_id)
Cross-reference every tag's firingTriggerId against the trigger list.
Flag:
tool_list_variables (account_id, container_id, workspace_id)
Flag:
Inspect tags and the container setup for Consent Mode wiring.
Flag:
denied state) before tags loadad_storage / analytics_storage / ad_user_data / ad_personalization not all
handledFor each GA4 event tag (tool_get_tag):
Flag:
/ga4-events conventions)ecommerce object from the data layervalue, currency, transaction_id)tool_get_workspace_status (account_id, container_id, workspace_id)
Flag:
GA4 - Event - purchase style) — unmaintainable at scaleGTM Audit — [Container Name]
Container Health Score: X/100
Score breakdown:
Tag health ......... X/25 (duplicates, orphans, paused)
Trigger coverage ... X/20
GA4 wiring ......... X/20
Consent Mode ....... X/20
Hygiene ............ X/15 (naming, variables, workspace)
Inventory: X tags · X triggers · X variables · Unpublished changes: [yes/no]
🔴 Critical — duplicate GA4 config, tags firing before consent
🟡 Important — orphaned tags, bad event names, missing parameters
🟢 Optimization — naming, unused variables, custom HTML to native
Top 3 Actions:
1. [Highest impact]
2. ...
3. ...
{
"title": "Two GA4 configuration tags for G-XXXX — every page view counted twice",
"body": "'GA4 - Config' and 'GA4 Base (old)' both load Measurement ID G-XXXX on All Pages. GA4 is counting every page_view and session twice, inflating traffic and deflating conversion rate. Pause the older tag and republish.",
"action_type": "tag_fix",
"expected_outcome": "Accurate GA4 traffic and conversion-rate numbers",
"estimated_impact_usd": 0,
"priority": "critical"
}
Action types: tag_fix, trigger_fix, consent_configuration,
container_hygiene, ga4_wiring.