openclaw / segment
Install for your project team
Run this command in your project directory to install the skill for your entire team:
mkdir -p .claude/skills/segment && curl -L -o skill.zip "https://fastmcp.me/Skills/Download/3185" && unzip -o skill.zip -d .claude/skills/segment && rm skill.zip
Project Skills
This skill will be saved in .claude/skills/segment/ and checked into git. All team members will have access to it automatically.
Important: Please verify the skill by reviewing its instructions before using it.
Track events and manage customer data via Segment API. Route data to destinations.
0 views
0 installs
Skill Content
---
name: segment
description: Track events and manage customer data via Segment API. Route data to destinations.
metadata: {"clawdbot":{"emoji":"📊","requires":{"env":["SEGMENT_WRITE_KEY"]}}}
---
# Segment
Customer data platform.
## Environment
```bash
export SEGMENT_WRITE_KEY="xxxxxxxxxx"
```
## Track Event
```bash
curl -X POST "https://api.segment.io/v1/track" \
-u "$SEGMENT_WRITE_KEY:" \
-H "Content-Type: application/json" \
-d '{"userId": "user123", "event": "Order Completed", "properties": {"revenue": 99.99}}'
```
## Identify User
```bash
curl -X POST "https://api.segment.io/v1/identify" \
-u "$SEGMENT_WRITE_KEY:" \
-H "Content-Type: application/json" \
-d '{"userId": "user123", "traits": {"email": "user@example.com", "plan": "premium"}}'
```
## Page View
```bash
curl -X POST "https://api.segment.io/v1/page" \
-u "$SEGMENT_WRITE_KEY:" \
-H "Content-Type: application/json" \
-d '{"userId": "user123", "name": "Home", "properties": {"url": "https://example.com"}}'
```
## Links
- Dashboard: https://app.segment.com
- Docs: https://segment.com/docs/connections/sources/catalog/libraries/server/http-api/