Loading...
Loading...
Compare original and translation side by side
data/sources.jsondata/sources.jsonassets/tracking-plan-saas.mdassets/analytics-qa-checklist.mdreferences/event-quality-rules.mdreferences/production-hardening.mdassets/tracking-plan-saas.mdassets/analytics-qa-checklist.mdreferences/event-quality-rules.mdreferences/production-hardening.md| Product Type | North Star Event | When It Fires |
|---|---|---|
| Content/Media | | Content fully loaded and visible |
| SaaS Tool | | User completes core workflow |
| E-commerce | | Transaction successful |
| Developer Tool | | First successful API call |
// PASS CORRECT: One event, differentiated by property
posthog.capture('value_delivered', { value_type: 'report', value_id: 'rpt_123' });
posthog.capture('value_delivered', { value_type: 'integration', value_id: 'int_456' });
// FAIL WRONG: Fragmented "value" events (harder to unify in retention/funnels)
posthog.capture('report_generated');
posthog.capture('integration_working');| 产品类型 | 北极星事件 | 触发时机 |
|---|---|---|
| 内容/媒体类 | | 内容完全加载并可见 |
| SaaS工具类 | | 用户完成核心工作流 |
| 电商类 | | 交易成功 |
| 开发者工具类 | | 首次API调用成功 |
// 正确示例:单个事件,通过属性区分
posthog.capture('value_delivered', { value_type: 'report', value_id: 'rpt_123' });
posthog.capture('value_delivered', { value_type: 'integration', value_id: 'int_456' });
// 错误示例:碎片化的“价值”事件(在留存/漏斗分析中难以统一)
posthog.capture('report_generated');
posthog.capture('integration_working');| Layer | Required Events | Optional |
|---|---|---|
| Acquisition | | |
| Activation | Your activation event (1-2 max) | |
| Engagement | Your engagement signal (1-2 max) | |
| Conversion | | |
| 层级 | 必填事件 | 可选事件 |
|---|---|---|
| 获客 | | |
| 激活 | 你的激活事件(最多1-2个) | |
| 参与 | 你的参与信号(最多1-2个) | |
| 转化 | | |
posthog.register()posthog.register({
app_env: 'prod',
platform: 'web',
landing_path: window.location.pathname,
traffic_source: deriveTrafficSource(),
utm_source, utm_medium, utm_campaign
});posthog.register()posthog.register({
app_env: 'prod',
platform: 'web',
landing_path: window.location.pathname,
traffic_source: deriveTrafficSource(),
utm_source, utm_medium, utm_campaign
});| Rule | Correct | Incorrect |
|---|---|---|
| Lowercase only | | |
| Snake_case | | |
| Object_action format | | |
| 规则 | 正确示例 | 错误示例 |
|---|---|---|
| 仅使用小写 | | |
| 蛇形命名法(Snake_case) | | |
| 对象_动作格式 | | |
| Task | Reference |
|---|---|
| PostHog setup | references/posthog-implementation.md |
| Pendo setup | references/pendo-implementation.md |
| Amplitude setup | references/amplitude-implementation.md |
| Mixpanel setup | references/mixpanel-implementation.md |
| Heap setup | references/heap-implementation.md |
| Server-side tracking | references/server-side-tracking.md |
| Privacy compliance | references/privacy-compliance.md |
| Event quality rules | references/event-quality-rules.md |
| Production patterns | references/production-hardening.md |
| Tracking plan template | assets/tracking-plan-saas.md |
| UTM standards | assets/utm-naming-standards.md |
| 任务 | 参考文档 |
|---|---|
| PostHog配置 | references/posthog-implementation.md |
| Pendo配置 | references/pendo-implementation.md |
| Amplitude配置 | references/amplitude-implementation.md |
| Mixpanel配置 | references/mixpanel-implementation.md |
| Heap配置 | references/heap-implementation.md |
| 服务端追踪 | references/server-side-tracking.md |
| 隐私合规 | references/privacy-compliance.md |
| 事件质量规则 | references/event-quality-rules.md |
| 生产环境优化 | references/production-hardening.md |
| 追踪方案模板 | assets/tracking-plan-saas.md |
| UTM标准 | assets/utm-naming-standards.md |
undefinedundefinedobject_typeobject_idsurfaceflowreferences/production-hardening.mdobject_typeobject_idsurfaceflowreferences/production-hardening.mdregisterSessionContext()app_envplatformlanding_pathtraffic_sourceregisterSessionContext()app_envplatformlanding_pathtraffic_sourceTrafficSourcesnake_caseTrafficSourcesnake_case
---
---undefinedundefined
---
---| Anti-Pattern | Instead |
|---|---|
| No North Star event | Define ONE canonical activation event |
Excessive | Collapse into one event with properties |
| PII in identify() | State-based identification only |
| Event spam from re-renders | Use |
Free text | Use TypeScript enum for TrafficSource |
| Non-unique IDs | Use stable domain IDs ( |
| Tracking everything | Focus on 5-15 key events (MVA) |
| Inconsistent naming | Enforce lowercase snake_case strictly |
| 反模式 | 正确做法 |
|---|---|
| 无北极星事件 | 定义一个标准的激活事件 |
过多 | 合并为单个带属性的事件 |
| identify()中包含个人身份信息(PII) | 仅基于状态进行身份识别 |
| 重复渲染导致事件泛滥 | 使用 |
自由文本 | 为TrafficSource使用TypeScript枚举 |
| 非唯一ID | 使用稳定的领域ID( |
| 追踪所有事件 | 聚焦5-15个关键事件(最小可行分析) |
| 命名不一致 | 严格执行小写蛇形命名法 |
data/sources.jsonbenchmarks_researchdata/sources.jsonbenchmarks_research| Template | Purpose |
|---|---|
| tracking-plan-saas.md | Complete SaaS tracking plan |
| marketing-event-library.md | Marketing attribution events |
| utm-naming-standards.md | UTM parameter guide |
| activation-metrics-template.md | Activation metric definition |
| analytics-qa-checklist.md | Data quality checklist |
| 模板 | 用途 |
|---|---|
| tracking-plan-saas.md | 完整的SaaS追踪方案 |
| marketing-event-library.md | 营销归因事件库 |
| utm-naming-standards.md | UTM参数指南 |
| activation-metrics-template.md | 激活指标定义模板 |
| analytics-qa-checklist.md | 数据质量检查清单 |
| Need | See Skill |
|---|---|
| Regional compliance (GDPR, PIPL, LGPD) | marketing-geo-localization |
| Regional analytics platforms (Baidu Analytics) | marketing-geo-localization |
| Privacy requirements by region | marketing-geo-localization |
| Cookie consent by jurisdiction | marketing-geo-localization |
| 需求 | 参考技能 |
|---|---|
| 区域合规(GDPR、PIPL、LGPD) | marketing-geo-localization |
| 区域分析平台(如百度统计) | marketing-geo-localization |
| 区域隐私要求 | marketing-geo-localization |
| 按司法管辖区设置Cookie同意 | marketing-geo-localization |