An Agent Skill that teaches AI coding assistants to integrate Umeng+ U-Web web analytics correctly. 一个让 AI 编程助手正确接入「友盟+ U-Web 网站统计」的 Agent Skill。
AI coding tools (Cursor, Claude Code, 通义灵码, Qoder, …) increasingly write the analytics
code for new websites and H5 pages. This skill packages the official U-Web integration
knowledge into a portable SKILL.md, so that when you ask your assistant to “add web
analytics”, it generates the right code the first time — correct script placement, the
_czc tracking APIs, and single-page-app page-view handling.
U-Web is script-tag based: there is no npm package. Everything runs through the global
array _czc.
| Path | Purpose |
|---|---|
SKILL.md |
The skill itself — when to use it, the core snippet, all 5 _czc APIs, SPA rules, pitfalls. |
references/api-reference.md |
Full API parameters, limits, open-compute-platform events, delay-click helper. |
references/frameworks.md |
Copy-paste recipes for static HTML, Vue, React, Next.js, Nuxt. |
install/README.md |
How to install the skill in Claude Code, Cursor, 通义灵码, Qoder, and others. |
Claude Code (personal):
git clone https://github.com/umeng/uweb-analytics-skill \
~/.claude/skills/uweb-analytics-integrationSee install/README.md for Cursor / 通义灵码 / Qoder and other tools.
Ask your assistant: “在我的 Next.js 项目里接入友盟 U-Web 网站统计,站点 ID 使用 YOUR_SITE_ID 占位,不要自行生成真实 ID。”