tracking-sync
Skill142 starsChanged 8 months agoApache-2.0View on GitHub
Use when the user wants GTM-ready config generation, GTM workspace sync, or container selection from an approved schema.
In this repository7 other files it gives its agents.
- analytics-tracking-automationSkill
- tracking-discoverSkill
- tracking-groupSkill
- tracking-live-gtmSkill
- tracking-schemaSkill
- tracking-shopifySkill
- tracking-verifySkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill for Step 4 and Step 5 work.
- Distinctive: line 19
If the telemetry consent prompt appears and no prior choice is recorded, stop and follow ../../references/telemetry-consent.md before …
- Distinctive: line 21
If GTM config does not exist yet:
- Very specific: line 33
If account/container/workspace IDs are already confirmed, skip interactive selection:
- Very specific: line 41
Do not bypass schema approval unless the user explicitly wants --force.
- Distinctive: line 42
Treat custom dimensions as a blocking checklist before sync/publish.
- Distinctive: line 43
Never auto-select GTM account, container, or workspace for the user.
- Very specific: line 45
Run sync with an interactive TTY from the start whenever it may prompt for OAuth consent, account, container, workspace, or new workspace …
- Very specific: line 46
Use non-interactive sync only when exact --account-id, --container-id, and --workspace-id values are already confirmed.
- Distinctive: line 63
default to a short answer-first sync summary before listing files
- Distinctive: line 65
keep file listings and follow-up commands after the summary
- Distinctive: line 69
Stop after sync unless the user explicitly asks for verification.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 the telemetry consent prompt appears and no prior choice is recorded, stop and follow ../../references/telemetry-consent.md before continuing.
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.jsonIf account/container/workspace IDs are already confirmed, skip interactive selection:
./event-tracking sync <artifact-dir>/gtm-config.json --account-id <account-id> --container-id <container-id> --workspace-id <workspace-id>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.
synccalls Google's official GTM API via interactive OAuth. The consent flow needs outbound HTTP and a local loopback callback on127.0.0.1; runsyncin an environment that permits both.- Run
syncwith an interactive TTY from the start whenever it may prompt for OAuth consent, account, container, workspace, or new workspace name. Non-interactive invocation will fail at the first prompt. - Use non-interactive
synconly when exact--account-id,--container-id, and--workspace-idvalues are already confirmed.
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
Closeout Style
- default to a short answer-first sync summary before listing files
- summarize what was generated or synced, what still needs manual selection or approval, and any blocking checklist items first
- keep file listings and follow-up commands after the summary
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.jsonReferences
- ../../references/output-contract.md
- ../../references/gtm-troubleshooting.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

