Product analytics

To use Hypertune for type-safe product analytics, create event types in your schema to log events you want to track, e.g.

input PurchaseEvent @event  {
  context: Context!
  revenueAmount: Int!
}

The fields on the event type, e.g. context and revenueAmount are included in the event payload.

Logging events

To log events, create Void flags in your schema as event triggers, e.g.

type Root {
  purchase: Void!
}

Then set the logic of these flags to Log Event expressions, where you set the Unit ID of the event, typically context.user.id, and set values for the payload fields or nest more logic for them.

Events are logged when you evaluate these Void flags.

Viewing event counts

To view event counts and drop-off rates between different event types, build a funnel.

Last updated