‹ 首页

tracking-schema

@jtrackingai · 收录于 1 周前

Use when the user wants schema preparation, event design, selector validation, schema review, or event-spec generation.

适合你,如果你需要规划产品埋点或审核事件定义

/ 下载安装
tracking-schema.skill双击,或拖进 Claude 桌面版 / Cowork,即完成安装↓ .skill↓ .zip
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code~/.claude/skills/(项目级 .claude/skills/)
Codex CLI~/.codex/skills/
Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add jtrackingai/analytics-tracking-automation/tracking-schema
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- jtrackingai/analytics-tracking-automation/tracking-schema
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify jtrackingai/analytics-tracking-automation/tracking-schema
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
132GitHub stars
~839最小装载
~839含声明引用
~906文本包总量
镜像托管

怎么用

技能原文 SKILL.md作者撰写 · Apache-2.0 · 68378e0

Tracking Schema

Use this skill for Step 3 work only.

Inputs

One of:

  • confirmed <artifact-dir>/site-analysis.json
  • existing <artifact-dir>/event-schema.json
Workflow
Role And Quality Bar

During schema work, act as an expert in event tracking design.

Your job is not to list generic events. Your job is to produce a tracking plan that is:

  • aligned with common GA4 / GTM industry standards
  • comprehensive enough to cover the site's meaningful business journeys
  • accurate enough to be implemented and verified without guesswork
  • disciplined enough to avoid noisy, redundant, or low-signal events
  • easy for the user to review, approve, QA, and maintain

Favor event definitions that are business-meaningful, implementation-ready, and analytically useful. Do not preserve weak legacy patterns just for continuity. Do not inflate the schema with events that add little reporting or decision value.

If the telemetry consent prompt appears and no prior choice is recorded, stop and follow [../../references/telemetry-consent.md](../../references/telemetry-consent.md) before continuing.

If schema context is not prepared yet:

./event-tracking prepare-schema <artifact-dir>/site-analysis.json

If the site has a live GTM container installed, make sure tracking-live-gtm has already produced <artifact-dir>/live-gtm-analysis.json before running prepare-schema.

Then:

validate-schema --check-selectors launches a real Chromium via Playwright to test each schema selector against the live site. Run it in an environment that permits outbound network and local browser execution; environments that restrict either tend to cause Playwright to hang or fail silently rather than return a clean error.

./event-tracking validate-schema <artifact-dir>/event-schema.json --check-selectors
./event-tracking generate-spec <artifact-dir>/event-schema.json
./event-tracking confirm-schema <artifact-dir>/event-schema.json

During review:

  • explain what live tracking problems the schema fixes when live-gtm-analysis.json is present
  • explain what benefits the new schema brings compared with the current live baseline
  • default to a compact tracking-plan summary in this order: Event Table, Common Properties, Event-specific Properties
  • keep long parameter inventories out of the main event table
  • stop for user approval before GTM generation
  • a broad request such as "full workflow" or "全流程" does not count as schema approval
  • do not run ./event-tracking confirm-schema <artifact-dir>/event-schema.json --yes on the user's behalf unless the user explicitly confirms the schema and parameters in the current turn
Required Output

Produce and share:

  • <artifact-dir>/event-schema.json
  • optional <artifact-dir>/event-spec.md
  • optional <artifact-dir>/tracking-plan-comparison.md when live-gtm-analysis.json is present
  • <artifact-dir>/schema-decisions.jsonl after schema confirmation
  • <artifact-dir>/schema-restore/ restore snapshots after schema confirmation
  • updated <artifact-dir>/workflow-state.json
Closeout Style
  • default to a decision-ready tracking-plan summary before listing files
  • keep the chat structure in this order: Event Table, Common Properties, Event-specific Properties
  • if a live baseline comparison exists, keep it as a compact appendix rather than replacing the tracking-plan structure
  • list files and next steps only after the summary
Stop Boundary

Stop after schema approval.

Do not continue into generate-gtm from a broad workflow request alone. The user must explicitly approve the current event-schema.json and its parameters first.

Default next phase:

./event-tracking generate-gtm <artifact-dir>/event-schema.json --measurement-id <G-XXXXXXXXXX>
References
  • [../../references/event-schema-guide.md](../../references/event-schema-guide.md)
  • [../../references/ga4-event-guidelines.md](../../references/ga4-event-guidelines.md)
  • [../../references/output-contract.md](../../references/output-contract.md)
按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。