S claudeskill.wiki
web-development

segment-cdp

أنماط الخبراء لمنصة بيانات العملاء Segment بما في ذلك Analytics.js، التتبع على جانب الخادم، خطط التتبع مع البروتوكولات، حل الهوية، تكوين الوجهات، وأفضل ممارسات حوكمة البيانات. يُستخدم عند: segment، analytics.js، منصة بيانات العملاء، cdp، خطة التتبع.

٢٠

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

التثبيت

npx claude-code-templates@latest --skill web-development/segment-cdp

Quick start

  1. Install Claude Code if you have not already.
  2. Copy the Install command from this page and run it in your project directory.
  3. In Claude Code, load or mention the skill when your task matches what the skill is for.

Documentation

Use the links below for agent skills, troubleshooting, and official examples.

موارد