segment-cdp
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.
Author
Category
Development ToolsInstall
Hot:4
Download and extract to your skills directory
Copy command and send to OpenClaw for auto-install:
Download and install this skill https://openskills.cc/api/download?slug=sickn33-skills-segment-cdp&locale=en&source=copy
Segment CDP - Expert Guide to Customer Data Platform
Skill Overview
The Segment CDP skill provides an expert-level implementation pattern for the Segment Customer Data Platform, covering Analytics.js integration, server-side tracking, tracking plan design, and best practices for data governance.
Use Cases
1. Client-Side Data Tracking Integration
When you need to integrate user behavior tracking into a website or web app, this skill helps you quickly set up Analytics.js correctly, including the complete patterns for
track, identify, page, and group calls.2. Server-Side Event Tracking
When handling backend events, webhook callbacks, or transfers of sensitive data, this skill enables a high-performance Node.js server-side tracking solution that supports non-blocking operations and internal batch processing.
3. Enterprise Data Governance
When designing event specifications, setting up data validation rules, or managing multiple target data sources, this skill helps you establish tracking plans that comply with Protocols standards—ensuring data quality and consistency.
Core Features
Analytics.js Browser Integration
Provides a complete implementation guide for client-side tracking, including best practices for anonymous ID management and user identity merging. Ensures that anonymous behavioral data is collected correctly before user identification.
Server-Side Tracking (Node.js)
A high-performance tracking solution based on
@segment/analytics-node, supporting batching and non-blocking sending—suitable for backend events, server-side webhooks, and sensitive data handling scenarios.Tracking Plan Design
Uses an Object + Action naming convention to design event architecture, define required properties, types, and validation rules, and enforce them through connections via Protocols.
FAQs
What is the difference between Segment CDP and Google Analytics?
Segment CDP is a customer data platform (CDP) focused on collecting, unifying, and distributing user data to multiple destinations, while Google Analytics primarily supports analysis and reporting. Segment can send data to multiple tools at once—such as GA, Mixpanel, and Amplitude—avoiding duplicate integration work.
When should you use server-side tracking instead of client-side tracking?
Use server-side tracking first when dealing with sensitive data (such as payment information or personally identifiable information), when you need stronger reliability guarantees (server transactions), or when you’re in environments where JavaScript can’t be used (APIs, mobile backends). Server-side tracking also avoids the impact of client-side Ad Blockers.
How do I avoid common anti-patterns in Segment tracking?
Primarily avoid: 1) using dynamic event names (you should use the fixed Object + Action pattern); 2) sending tracking properties as separate events (properties should be event parameters); 3) missing
identify before calling track (this prevents user identities from being correctly associated). This skill provides concrete examples of these anti-patterns and the correct approaches.