If you find this useful,
Skill Details
Back to Skills

/segment

by mrgoodb · View on GitHub

Track events and manage customer data via Segment API. Route data to destinations.

View on GitHub

Segment

Customer data platform.

Environment

export SEGMENT_WRITE_KEY="xxxxxxxxxx"

Track Event

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

curl -X POST "https://api.segment.io/v1/identify" \
  -u "$SEGMENT_WRITE_KEY:" \
  -H "Content-Type: application/json" \
  -d '{"userId": "user123", "traits": {"email": "[email protected]", "plan": "premium"}}'

Page View

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

Related Data Skills

/apewisdom

Scan Reddit for trending stocks and sentiment spikes using the ApeWisdom API (free). Use this to fin

/supabase

Connect to Supabase for database operations, vector search, and storage. Use for storing data, runni

/umea-data

Query open data from Umeå kommun about locations, facilities, demographics, environment, and more.

/ipinfo

Perform IP geolocation lookups using ipinfo.io API. Convert IP addresses to geographic data includin