Skip to main content
skill CX Codex

gtm-tracking-plan — Claude Code skill: setup and overview

Generates Google Tag Manager container specs and copy-ready dataLayer.push() snippets directly from a website URL.

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

What gtm-tracking-plan does

The skill transforms measurement requirements into a concrete Google Tag Manager build specification. Passing a website URL allows the agent to inspect pages via WebFetch, determine the conversion funnel, and produce structured tables for variables, triggers, and tags. It also natively consumes event structures generated previously by /ga4-measurement-plan.

Account access is optional. When run without connected platforms, the skill inserts clean placeholders such as G-XXXXXXX. Once connected via the Cogny MCP server, it inspects live workspaces to diff the plan against current setups, flagging tags to create, adjust, or retire.

Without connecting external ad accounts, marketing pixel identifiers must be entered manually.

What it helps with

  • generate GTM tag, trigger, and variable build specifications
  • produce structured dataLayer.push() code for engineers
  • audit live GTM container setups against a tracking taxonomy
  • organize conversion tags across supported ad platforms

Example prompts for the agent

  • /gtm-tracking-plan example.com
  • Build a GTM tracking spec for example.com
  • Audit the live GTM container against our measurement plan for example.com

How to install gtm-tracking-plan

1Skills CLI (Vercel)

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

2Manually: put the files in place

~/.claude/skills/gtm-tracking-plan/SKILL.md

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

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

Questions about gtm-tracking-plan

How to install gtm-tracking-plan in Claude Code?

Run npx skills add cognyai/claude-code-marketing-skills --skill gtm-tracking-plan -a claude-code. The skill file will be stored in ~/.claude/skills/gtm-tracking-plan/SKILL.md.

What does gtm-tracking-plan do?

It drafts an implementation spec for Google Tag Manager, including trigger logic, variable definitions, and ready-to-paste dataLayer code snippets.

Do I need connected accounts to generate a spec?

No. The skill runs without external connections using placeholder values. Connecting through Cogny MCP is only needed to compare against an existing container.

Similar skills

All skills for Marketing and content →

From the same set58

linkedin-launch-video Turns a brief or landing page into a LinkedIn-ready clip: burned-in captions, sound-off viewing, plain business language. Can hand the creative to LinkedIn Ads. CX Codex +1 ★ 111repo stars linkedin-ads-audit Audits your LinkedIn Ads account by reviewing campaign setups, creatives, and cost efficiency. Identifies weak targeting and flags budget waste. CX Codex +1 ★ 111repo stars lead-qualification Research a prospect against your ideal customer profile, review company details and get a suggested next step. Use it for a single lead or a list. CX Codex +1 ★ 111repo stars landing-page-review Scores a landing page for conversion: headline, offer, buttons, trust signals. Useful when you are about to change a page on a hunch. CX Codex +1 ★ 111repo stars gtm-setup A reference for Google Tag Manager events and GA4 setup. Use it to shape a dataLayer event, choose a trigger, or troubleshoot tracking. CX Codex +1 ★ 111repo stars gtm-monitor Diffs a Google Tag Manager container against last week: tags added, edited or removed, plus draft changes still sitting unpublished. CX Codex +1 ★ 111repo stars gtm-audit Inspects Google Tag Manager web containers for orphan tags, duplicate GA4 tracking, and Consent Mode gaps via Cogny MCP. CX Codex +1 ★ 111repo stars google-ads-scripts A reference for writing and debugging Google Ads Scripts in JavaScript, from GAQL queries to Sheets workflows. Use it to automate account tasks and reporting. CX Codex +1 ★ 111repo stars

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