gtm-tracking-setup
Installation
SKILL.md
GTM Tracking Setup
Design tracking configurations for GA4, GTM, and each ad platform, and output an importable JSON file for the GTM container.
Workflow
0. Read app code → 1. Gather requirements → 2. Consult references → 3. Refer to examples → 4. Output JSON → 5. Implementation guide
0. Reading the application code
If the source code of the site/app to be tracked is accessible (anywhere in the workspace, or at a path the user provides), read and understand it before starting design. Reading the actual code dramatically improves the precision of dataLayer design, trigger conditions, and event definitions — guessing at form IDs or routing patterns leads to triggers that silently fail in production.
Skip this step only if the code is not accessible (e.g., the user is integrating with a third-party site they cannot read).