Browse/Segment/Track an Event
Track an Event
Segment
$19 · Pro
Send a track call to Segment's HTTP API.
track-event.ts
const response = await fetch("https://api.segment.io/v1/track", {
Unlock the full snippet
This is a Pro snippet — get all-access for $19, or unlock just this one snippet for $1.