Measure logo

Custom Events

Track app-specific events like user actions and feature usage, and view them in the session replay.

Custom events add app-specific context to the automatically collected data: user actions, feature usage, feature flags, or anything else worth seeing while debugging. They appear in the session replay with the rest of the session's events.

Track an event with trackEvent:

import sh.measure.android.Measure

Measure.trackEvent("checkout_completed")

Events also accept attributes and a custom timestamp. See Track custom events in the API reference for examples and naming rules.

Screen views and handled errors have dedicated methods, trackScreenView and trackError. Prefer them over a custom event so these show up consistently across the dashboard.

Think this page can be better?

Open an issue