Agent skill
tracking-sync
Use when the user wants GTM-ready config generation, GTM workspace sync, or container selection from an approved schema.
Install this agent skill to your Project
npx add-skill https://github.com/jtrackingai/event-tracking-skill/tree/main/skills/tracking-sync
SKILL.md
Tracking Sync
Use this skill for Step 4 and Step 5 work.
Inputs
One of:
- approved
<artifact-dir>/event-schema.json - existing
<artifact-dir>/gtm-config.json
Workflow
If GTM config does not exist yet:
./event-tracking generate-gtm <artifact-dir>/event-schema.json --measurement-id <G-XXXXXXXXXX>
Then sync:
./event-tracking sync <artifact-dir>/gtm-config.json
Hard Rules
- Do not bypass schema approval unless the user explicitly wants
--force. - Treat custom dimensions as a blocking checklist before sync/publish.
- Never auto-select GTM account, container, or workspace for the user.
- Run OAuth-triggering commands outside sandboxed environments.
Required Output
Produce and share:
<artifact-dir>/gtm-config.json<artifact-dir>/gtm-context.json<artifact-dir>/workflow-state.json
For Shopify runs, also expect:
<artifact-dir>/shopify-custom-pixel.js<artifact-dir>/shopify-install.md
Stop Boundary
Stop after sync unless the user explicitly asks for verification.
Default next phase:
./event-tracking preview <artifact-dir>/event-schema.json --context-file <artifact-dir>/gtm-context.json
References
- ../../references/output-contract.md
- ../../references/gtm-troubleshooting.md
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
tracking-live-gtm
Use when the user wants to inspect the real live GTM runtime before schema generation or compare multiple live GTM containers.
tracking-discover
Use when the user wants crawl coverage, platform detection, dataLayer discovery, or a fresh artifact directory before grouping and schema work.
tracking-shopify
Use when the platform is Shopify or the run needs the Shopify-specific schema, sync, install, or verification branch.
tracking-schema
Use when the user wants schema preparation, event design, selector validation, schema review, or event-spec generation.
tracking-group
Use when the work starts from `site-analysis.json` and the user wants page-group authoring, grouping adjustments, or page-group approval.
tracking-verify
Use when the user wants preview QA, failure interpretation, release readiness, or an explicit publish handoff.
Didn't find tool you were looking for?