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
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: davila7-claude-code-templates-segment-cdp3description: Segment CDP4---56# Segment CDP78## Patterns910### Analytics.js Browser Integration1112Client-side tracking with Analytics.js. Include track, identify, page,13and group calls. Anonymous ID persists until identify merges with user.141516### Server-Side Tracking with Node.js1718High-performance server-side tracking using @segment/analytics-node.19Non-blocking with internal batching. Essential for backend events,20webhooks, and sensitive data.212223### Tracking Plan Design2425Design event schemas using Object + Action naming convention.26Define required properties, types, and validation rules.27Connect to Protocols for enforcement.282930## Anti-Patterns3132### ❌ Dynamic Event Names3334### ❌ Tracking Properties as Events3536### ❌ Missing Identify Before Track3738## ⚠️ Sharp Edges3940| Issue | Severity | Solution |41|-------|----------|----------|42| Issue | medium | See docs |43| Issue | high | See docs |44| Issue | medium | See docs |45| Issue | high | See docs |46| Issue | low | See docs |47| Issue | medium | See docs |48| Issue | medium | See docs |49| Issue | high | See docs |5051---52> Converted and distributed by [TomeVault](https://tomevault.io/claim/davila7) — claim your Tome and manage your conversions.53<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/davila7-claude-code-templates-segment-cdp in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Segment CDP It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.