event-tracking-skill
Installation
SKILL.md
Event Tracking Skill
Follow this workflow to set up GA4 event tracking via GTM.
The flow splits into two branches after analysis:
genericsites: keep the existing DOM-selector + GTM preview flowshopifysites: keep the same crawl / grouping flow, but use Shopify-aware schema bootstrapping, Shopify custom pixel artifacts, and manual post-install verification
Prerequisites
- CLI is built: run
npm run buildin the project directory ifdist/cli.jsdoesn't exist - Google OAuth client metadata is embedded in
src/gtm/auth.tsand may be overridden withGOOGLE_OAUTH_CLIENT_ID/GOOGLE_OAUTH_CLIENT_SECRET - Any step that may trigger Google OAuth must run outside a sandboxed environment. In practice, treat
syncas a non-sandbox command by default because the OAuth flow may need to bind a local callback on127.0.0.1and reach GTM APIs directly