analytics-tracking-automation

作者 jtrackingai已验证

AI-powered GA4 + GTM event tracking — automates site analysis, event schema, GTM sync, preview verification, and publishing. Works with Cursor, Codex, and any AI agent.

134
Stars
39
Forks
TypeScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/jtrackingai/analytics-tracking-automation

快速入门

使用 analytics-tracking-automation 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

GA4 + GTM, done by AI. From site analysis to go live.
Works with Cursor · Codex · Any AI Agent

What You Get · Installation · Quick Start · Quick Debug Tips · Website

Analytics Tracking Automation

analytics-tracking-automation is a local-first AI skill for planning, reviewing, and delivering GA4 + GTM tracking.

Use it when you want an agent to help with:

  • analyzing a site before tracking work starts
  • grouping pages by business purpose
  • designing or reviewing a GA4 event plan
  • comparing a proposed plan with an existing live GTM setup
  • preparing GTM-ready outputs and verification guidance
  • handling both generic websites and Shopify storefronts

This README is intentionally user-facing and conversation-first. If you need the CLI surface or maintainer workflow, use DEVELOPING.md.

What You Get

For a given website, this skill can help produce:

  • a reviewable site analysis
  • business-friendly page groups
  • a compact, decision-ready tracking plan
  • GTM-ready tracking outputs
  • verification and health summaries before go-live
  • artifact-backed progress that can be resumed later

Installation

Most users only need the umbrella skill.

Recommended

Clone the repository locally, then install the skill into your agent skills directory:

git clone https://github.com/jtrackingai/analytics-tracking-automation.git
cd analytics-tracking-automation
npm run install:skills

No-Clone Alternative

If you do not want to clone the repository, install the root skill directly:

npx skills add jtrackingai/analytics-tracking-automation

For advanced install options and exported skill bundles:

ClawHub Publish

If you are publishing this skill to ClawHub, publish the exported public bundle instead of the full repository:

npm run export:skills:clawhub

Then upload dist/clawhub-skill-bundles/analytics-tracking-automation.

That public bundle is a publish-safe skill bundle. It keeps the agent-facing skill docs and references while stripping bundled executable runtime files (CLI bootstrap, packaged node modules, telemetry transport, and updater runtime) that tend to trigger stricter marketplace security scans.

When users install/use this public ClawHub bundle, they must run this prerequisite first (before any event-tracking command):

npx skills add jtrackingai/analytics-tracking-automation

Quick Start

Use It As A Skill

The intended experience is simple: tell your agent what you want in plain language.

Good requests usually include one or more of:

  • the site URL
  • whether this is a new setup, update, upkeep, or audit
  • the output root for a new site run, such as ./output or /tmp/output
  • an existing site artifact directory if you already have one, such as ./output/example_com
  • GA4 measurement ID or GTM context when you already know them
  • any scope boundary such as "stop after schema review"

For a new setup, the output root is not the artifact directory itself. The agent/CLI creates one artifact directory per site under that root, for example ./output/example_com.

Example Prompts

New setup from scratch:

Use analytics-tracking-automation to plan GA4 + GTM tracking for https://www.example.com.
Use ./output as the output root; create the site artifact directory under it.
Start from a fresh run and stop after the event schema is ready for review.

New setup with implementation context:

Use analytics-tracking-automation to set up tracking for https://www.example.com.
Use /tmp/output as the output root, so this site's artifacts go under /tmp/output/www_example_com.
GA4 Measurement ID is G-XXXXXXXXXX.
We care most about signup, pricing, contact, and demo intent.

Audit only:

Use analytics-tracking-automation to run a tracking health audit for https://www.example.com.
I only want to understand the current live GTM setup and whether we should repair or rebuild.
Do not continue into deployment work.

Routine upkeep:

Use analytics-tracking-automation to do an upkeep review for this existing run:
./output/example_com
Tell me what is still healthy, what drifted, and what needs repair.

Update an existing artifact:

Use analytics-tracking-automation to resume this artifact directory:
./output/example_com
Tell me the current checkpoint and continue only through schema review.

Page-group review only:

Use analytics-tracking-automation to review and refine the page groups in:
./output/example_com/site-analysis.json
Focus on business intent, not just URL shape.

Shopify branch:

Use analytics-tracking-automation for this Shopify storefront:
https://store.example.com
I want the Shopify-specific tracking path, not the generic website flow.

How To Think About It

This skill is best when you want the agent to act like a tracking lead, not just a command runner.

A typical conversation flow is:

  1. inspect the site or resume an existing run
  2. group pages in a reviewable way
  3. draft or revise the event plan
  4. review what should be reused, repaired, added, or dropped
  5. continue into GTM generation and verification only when you explicitly want that

Where To Go Next

Quick Debug Tips

If preview troubleshooting points to selector mismatch or page-load/navigation issues, these Playwright CLI helpers are faster than repeatedly re-running the full flow:

npm run debug:open -- https://www.example.com
npm run debug:codegen -- https://www.example.com
  • debug:open: headed browser for quick visual checks (redirect loops, WAF pages, blocked content).
  • debug:codegen: interactive selector capture for fixing event-schema.json selectors.

Product Boundary

  • the workflow runs locally
  • browser-backed steps rely on Playwright Chromium; npm install triggers the package postinstall step that installs the browser binary
  • GTM sync uses Google OAuth
  • OAuth credentials are cached in the artifact directory for the current site run
  • generic sites use automated preview verification
  • Shopify uses the Shopify-specific branch and manual post-install validation
  • a minimal anonymous startup signal is sent when an event-tracking command begins so operators can measure active usage; it is session-scoped and limited to technical metadata such as command name, CLI version, OS family, Node major version, and a per-invocation session identifier
  • richer anonymous usage diagnostics remain opt-in and the first explicit choice is stored in local user config; if enabled, future runs send higher-level workflow data such as command name, success/failure status, rough counts, site hostname, detected platform, and broad workflow checkpoints so operators can improve the product and troubleshoot reliability; if declined, future runs continue normally without these richer diagnostics until the user changes that local config choice; those richer diagnostics do not send full URLs, page paths, query strings, file paths, GTM/GA IDs, selectors, OAuth data, raw errors, or page content; the remaining privacy risk is that the site hostname and workflow metadata still reveal which domain was worked on and broad usage patterns; if a workflow prompt asks for telemetry consent and no stored preference exists, the operator must stop and let the user choose yes or no instead of answering on the user's behalf
  • installed copy bundles can self-check GitHub for updates and reinstall the same selected bundle set

Need A More Advanced Setup?

This skill reflects the implementation workflow behind JTracking.

If you need a more advanced setup, JTracking also supports:

  • richer tracking design based on concrete business flows
  • server-side tracking and custom loaders
  • more destination and ad-platform integrations
  • longer-term tracking operations and maintenance

Contact Us

If you run into any issues while using this skill, contact us at support@jtracking.ai.

We will reply as soon as we see your message.

License

This project is licensed under the Apache License, Version 2.0. See LICENSE for the full text.

Use of the JTracking name, logo, and other brand assets is not granted under this license.

常见问题

What is analytics-tracking-automation?

analytics-tracking-automation is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by jtrackingai. AI-powered GA4 + GTM event tracking — automates site analysis, event schema, GTM sync, preview verification, and publishing. Works with Cursor, Codex, and any AI agent. It has 134 GitHub stars.

Is analytics-tracking-automation safe to use?

Yes. analytics-tracking-automation passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install analytics-tracking-automation?

Clone the repository with "git clone https://github.com/jtrackingai/analytics-tracking-automation" and add it to your Claude Code skills directory (see the Installation section above). analytics-tracking-automation ships a SKILL.md manifest, so compatible agents can discover and load it automatically.

What programming language is analytics-tracking-automation written in?

analytics-tracking-automation is primarily written in TypeScript. It is open-source under jtrackingai on GitHub, so you can review or fork the full source.

Are there alternatives to analytics-tracking-automation?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh analytics-tracking-automation against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情