Skip to content

Track events

Capture pageviews, custom events, and user IDs from the browser tracker.

The tracker sends the first pageview on load. Call methods on window.dumbledor for custom events, user identification, and client-side route changes.

typescript
window.dumbledor.track("signup", { plan: "pro" });

window.dumbledor.identify("user_123", { plan: "pro" });
FieldType
track(name, properties?)function
identify(userId, traits?)function
page()function

Server-side events

Send the same payloads directly to https://ingest.dumbledor.com/v1/collect. See the API reference for the full request shape.