返回 Skill 列表
extension
分类: 开发与工程无需 API Key

segment-cdp

专家模式下的Segment客户数据平台,包括Analytics.js、服务器端跟踪、使用协议的跟踪计划、身份解析、目的地配置以及数据治理最佳实践。使用场景:segment, analytics.js, 客户数据平台, cdp, 跟踪计划。

person作者: jakexiaohubgithub

Segment CDP

Patterns

Analytics.js Browser Integration

Client-side tracking with Analytics.js. Include track, identify, page, and group calls. Anonymous ID persists until identify merges with user.

Server-Side Tracking with Node.js

High-performance server-side tracking using @segment/analytics-node. Non-blocking with internal batching. Essential for backend events, webhooks, and sensitive data.

Tracking Plan Design

Design event schemas using Object + Action naming convention. Define required properties, types, and validation rules. Connect to Protocols for enforcement.

Anti-Patterns

❌ Dynamic Event Names

❌ Tracking Properties as Events

❌ Missing Identify Before Track

⚠️ 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 |