Expert patterns for Segment Customer Data Platform including Analytics.js, server-side tracking, tracking plans with Protocols, identity resolution, destinations configuration, and data governance best practices. Use when: segment, analytics.js, customer data platform, cdp, tracking plan.
Add this skill
npx mdskills install sickn33/segment-cdpOutlines good practices but lacks actionable instructions, examples, and detail
1---2name: segment-cdp3description: "Expert patterns for Segment Customer Data Platform including Analytics.js, server-side tracking, tracking plans with Protocols, identity resolution, destinations configuration, and data governance best practices. Use when: segment, analytics.js, customer data platform, cdp, tracking plan."4source: vibeship-spawner-skills (Apache 2.0)5---67# Segment CDP89## Patterns1011### Analytics.js Browser Integration1213Client-side tracking with Analytics.js. Include track, identify, page,14and group calls. Anonymous ID persists until identify merges with user.151617### Server-Side Tracking with Node.js1819High-performance server-side tracking using @segment/analytics-node.20Non-blocking with internal batching. Essential for backend events,21webhooks, and sensitive data.222324### Tracking Plan Design2526Design event schemas using Object + Action naming convention.27Define required properties, types, and validation rules.28Connect to Protocols for enforcement.293031## Anti-Patterns3233### ❌ Dynamic Event Names3435### ❌ Tracking Properties as Events3637### ❌ Missing Identify Before Track3839## ⚠️ Sharp Edges4041| Issue | Severity | Solution |42|-------|----------|----------|43| Issue | medium | See docs |44| Issue | high | See docs |45| Issue | medium | See docs |46| Issue | high | See docs |47| Issue | low | See docs |48| Issue | medium | See docs |49| Issue | medium | See docs |50| Issue | high | See docs |51
Full transparency — inspect the skill content before installing.