segment-cdp
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSegment CDP
Segment CDP
Patterns
模式
Analytics.js Browser Integration
Analytics.js浏览器集成
Client-side tracking with Analytics.js. Include track, identify, page,
and group calls. Anonymous ID persists until identify merges with user.
使用Analytics.js进行客户端跟踪。包含track、identify、page和group调用。匿名ID会持续存在,直到identify与用户信息合并。
Server-Side Tracking with Node.js
基于Node.js的服务器端跟踪
High-performance server-side tracking using @segment/analytics-node.
Non-blocking with internal batching. Essential for backend events,
webhooks, and sensitive data.
使用@segment/analytics-node实现高性能服务器端跟踪。内部批处理机制支持非阻塞式处理。对于后端事件、webhook和敏感数据来说至关重要。
Tracking Plan Design
跟踪计划设计
Design event schemas using Object + Action naming convention.
Define required properties, types, and validation rules.
Connect to Protocols for enforcement.
使用「对象+操作」的命名约定设计事件模式。定义必填属性、类型和验证规则。与Protocols关联以实现强制约束。
Anti-Patterns
反模式
❌ Dynamic Event Names
❌ 动态事件名称
❌ Tracking Properties as Events
❌ 将属性作为事件跟踪
❌ Missing Identify Before Track
❌ 在Track之前未执行Identify
⚠️ Sharp Edges
⚠️ 注意事项
| Issue | Severity | Solution |
|---|---|---|
| Issue | medium | See docs |
| Issue | high | See docs |
| Issue | medium | See docs |
| Issue | high | See docs |
| Issue | low | See docs |
| Issue | medium | See docs |
| Issue | medium | See docs |
| Issue | high | See docs |
| 问题 | 严重程度 | 解决方案 |
|---|---|---|
| 问题 | 中等 | 查看文档 |
| 问题 | 高 | 查看文档 |
| 问题 | 中等 | 查看文档 |
| 问题 | 高 | 查看文档 |
| 问题 | 低 | 查看文档 |
| 问题 | 中等 | 查看文档 |
| 问题 | 中等 | 查看文档 |
| 问题 | 高 | 查看文档 |