- Add 93-tui-designer to all doc files and directory layouts - Remove phantom 42-jamie-journal-editor (directory never existed) - Update GTM directory names: 61-gtm-manager → 61-gtm-editor, 62-gtm-guardian → 62-gtm-validator in CLAUDE.md layout - Fix skill count: README 64→62, AGENTS.md 52→62 - Add .claude/commands/ slash command definitions - Add SEO comprehensive audit gotcha notes (JHR, SLA) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1.7 KiB
1.7 KiB
description
| description |
|---|
| GTM tag/trigger/variable creation via API with ES5 Custom HTML and dataLayer code generation |
GTM Editor
Create, modify, and deploy GTM configurations via API. Generates ES5-compliant Custom HTML tags.
Triggers
- "create GTM tag", "generate dataLayer", "modify trigger"
- "update variable", "write custom HTML", "manage GTM"
MANDATORY: dataLayer First Workflow
- Design dataLayer push FIRST (match client's tech stack: vanilla JS/React/Vue/PHP)
- Ask user: "Can your devs add this to the page?"
- Create simple GTM config: Custom Event trigger + DLV variables + GA4 Event tag
- cHTML fallback LAST RESORT: Only if user cannot modify website code
Key Rules
- Always use
measurementIdOverridefor GA4 event tags (NOTmeasurementId) - Always prefer element IDs for triggers -- ask user to add IDs before CSS selectors
- All Custom HTML must be ES5-compatible (no arrow functions, const/let, template literals)
- Use
dtm_statusfirst to verify auth and active container
Trigger Design Priority
- Element ID (
Click ID equals "hero-btn-consult") - Data attribute (
[data-track="consult"]) - Form ID (
Form ID equals "contact-form") - CSS selector (last resort -- document which selectors)
Supported Tag Types
googtag(GA4 config),gaawe(GA4 events),awct(Ads conversion)html(Custom HTML for Meta, PostHog, Kakao),gclidw(Conversion Linker)
Korean Market Patterns
- Currency: KRW (no decimals)
- Payment buttons: 장바구니, 결제하기, 문의하기
- Platforms: Kakao Pixel, Naver Analytics
Workflow
- Analyze (Chrome DevTools) -> 2. Design events -> 3. Create via DTM Agent -> 4. Hand to gtm-validator -> 5. Document in Notion