Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uweb-analytics-skill

An Agent Skill that teaches AI coding assistants to integrate Umeng+ U-Web web analytics correctly. 一个让 AI 编程助手正确接入「友盟+ U-Web 网站统计」的 Agent Skill。

License: MIT


English

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.

What's inside

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.

Quick install

Claude Code (personal):

git clone https://github.com/umeng/uweb-analytics-skill \
  ~/.claude/skills/uweb-analytics-integration

See install/README.md for Cursor / 通义灵码 / Qoder and other tools.

Try it

Ask your assistant: “在我的 Next.js 项目里接入友盟 U-Web 网站统计,站点 ID 使用 YOUR_SITE_ID 占位,不要自行生成真实 ID。”

About

友盟+ U-Web 网站统计 AI Agent Skill|Helps Cursor, Claude Code, 通义灵码 and Qoder integrate web analytics, events and SPA pageviews correctly.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors