Custom Events
Track app-specific events like user actions and feature usage, and view them on the session timeline.
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 on the session timeline with the rest of the session's events.
Track an event with trackEvent:
import sh.measure.android.Measure
Measure.trackEvent("checkout_completed")import Measure
Measure.trackEvent(name: "checkout_completed", attributes: [:])import 'package:measure_flutter/measure_flutter.dart';
Measure.instance.trackEvent(name: "checkout_completed");import { Measure } from '@measuresh/react-native';
Measure.trackEvent({ name: "checkout_completed" });import sh.measure.kmp.Measure
Measure.trackEvent(name = "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