What Are Events?

Events log user actions—like clicks, sign-ups, or purchases—in your app.

You send them manually via the SDK’s track() function to capture behavior tied to features, providing raw data for metrics and experiments that help developers and product teams assess rollout effects.

How Events Work

Call track() with an eventKey to name the event, and optionally an eventValue (numeric) or properties (key-value pairs) for extra detail:

client.track(

  eventKey: string,

  eventValue?: number | null,

  properties?: Record<string, any> | null

);

Once submitted, Events appear automatically in the FlagSync dashboard—no predefinition needed.

  • Use Cases: Track anything from button clicks to performance stats—whatever matters to your app.

Events in Action

Events fuel FlagSync’s power:

Real-Time Insights

Watch them live in Live Events.

Metrics

Build conversion rates or aggregates in Metrics.

Experiments

Link them to flags in Experiments to test hypotheses.

For Developers

Drop track() anywhere in your code—events auto-sync to FlagSync for analysis.

For PMs

Use events to spot trends or prove feature impact—no coding required to view results.

Next Steps