Skip to main content
After identifying a user, track events as they happen in your product.
The user must have been identified first using the Identify endpoint.

Creating and configuring events

There are two ways to start tracking events in Retain.

1. Create the event first

You can create and configure an event in advance from the Events page.
After that, simply use the same event name when calling track.
This approach is useful if you want to define the event configuration before sending any data.

2. Send the event directly with track

You can also start sending events immediately using track. If the event does not exist yet, Retain will automatically create it for you. This makes it easy to start tracking quickly and refine the configuration later. After the event appears in the Events page, you only need to configure:
  • Importance
    Defines how critical this event is for your product. Retain uses this information when calculating customer health and identifying churn risk. High-importance events typically represent moments where users extract significant value from your product.
  • Expected frequency
    Indicates how often you expect this event to happen. This helps Retain understand normal usage patterns and detect when an account’s activity drops below expected levels.

Tracking events

See POST /track in the API Reference for more details. That’s it. You’re now tracking events with Retain. Nice, now the fun part begins.