# uweb-analytics-skill **Repository Path**: umengplus/uweb-analytics-skill ## Basic Information - **Project Name**: uweb-analytics-skill - **Description**: 友盟+ U-Web 网站统计 AI Agent Skill|Helps Cursor, Claude Code, 通义灵码 and Qoder integrate web analytics, events and SPA pageviews correctly. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-08-06 - **Last Updated**: 2026-08-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # uweb-analytics-skill **An [Agent Skill](https://www.anthropic.com/news/skills) that teaches AI coding assistants to integrate Umeng+ U-Web web analytics correctly.** **一个让 AI 编程助手正确接入「友盟+ U-Web 网站统计」的 Agent Skill。** [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE) --- ## 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`](./SKILL.md) | The skill itself — when to use it, the core snippet, all 5 `_czc` APIs, SPA rules, pitfalls. | | [`references/api-reference.md`](./references/api-reference.md) | Full API parameters, limits, open-compute-platform events, delay-click helper. | | [`references/frameworks.md`](./references/frameworks.md) | Copy-paste recipes for static HTML, Vue, React, Next.js, Nuxt. | | [`install/README.md`](./install/README.md) | How to install the skill in Claude Code, Cursor, 通义灵码, Qoder, and others. | ### Quick install Claude Code (personal): ```bash git clone https://github.com/umeng/uweb-analytics-skill \ ~/.claude/skills/uweb-analytics-integration ``` See [`install/README.md`](./install/README.md) for Cursor / 通义灵码 / Qoder and other tools. ### Try it Ask your assistant: *“在我的 Next.js 项目里接入友盟 U-Web 网站统计,站点 ID 使用 YOUR_SITE_ID 占位,不要自行生成真实 ID。”*