Tracking events
Send behavioural events from your product to Plunk.
Events are the building block for automations and segmentation. Track them from the server or the browser.
typescript
await plunk.events.track({
event: "subscription-upgraded",
email: "user@example.com",
data: { plan: "pro", mrr: 49 },
});Event names are freeform strings — we recommend a resource-action convention like invoice-paid or user-signed-up.