Browse/PostHog/Capture an Event
Capture an Event
PostHog
$19 · Pro
Capture a custom analytics event in PostHog.
capture-event.ts
const response = await fetch(`${POSTHOG_HOST}/i/v0/e/`, {
Unlock the full snippet
This is a Pro snippet — get all-access for $19, or unlock just this one snippet for $1.
Capture an Event — PostHog Example (TypeScript, Node, Python, Go, PHP, Ruby) | apiexamples