gtm-tracking-planlisted
Install: claude install-skill cognyai/claude-code-marketing-skills
# GTM Tracking Plan
Give it a site URL and get back a complete Google Tag Manager build spec — every tag,
trigger, and variable to create, plus the exact `dataLayer.push()` snippets a
developer drops into the site. It's the implementation half of a measurement plan. No
account connection required.
Best run after `/ga4-measurement-plan` — pass the same URL and this skill builds the
GTM container to deliver that plan. Run alone, it derives a sensible plan first.
## Usage
`/gtm-tracking-plan example.com` — full GTM build spec for the site
## Steps
### 1. Establish the events to implement
If a GA4 measurement plan already exists in the conversation, use its event taxonomy.
Otherwise, `WebFetch` the site, infer the site type and funnel, and derive the event
list yourself (the same logic as `/ga4-measurement-plan`, in brief).
For each event you need: name, when it fires, its parameters, whether it's a key event.
### 2. Variables
List every variable to create, by type:
- **Data Layer Variables** — one per parameter pushed to the data layer
(`ecommerce`, `value`, `currency`, `transaction_id`, `lead_source`, …)
- **Built-in variables to enable** — Click Element, Click URL, Click Text, Form ID,
Page Path, Page URL, plus the relevant ones per trigger
- **Constant** — the GA4 Measurement ID (`G-XXXXXXX`)
- **Lookup / RegEx table** — only if routing or value mapping is genuinely needed
- **Consent state variables** — if Consent Mode is in scope
Present as a table: variable