Skip to main content
Feature tagging lets you annotate session replays with named markers. When a user hits your checkout flow, onboarding wizard, or any other important flow, you call startReplay('checkout') — and in the dashboard you’ll see every session tagged with checkout, with a clickable timestamp that jumps the player to that exact moment. Tracelit dashboard showing sessions tagged with 'checkout' and 'onboarding' feature labels

Basic usage

You can use any string as a feature name — keep them short and descriptive:

React example — tag a component lifecycle

The most natural place to call these in React is inside a useEffect in the component that represents the flow:
When the user mounts CheckoutFlow, a checkout tag appears in the session. When they leave (or the component unmounts), the tag closes. In the dashboard you’ll see the exact duration they spent in checkout.

Next.js example — tag a page or route group


Multiple concurrent tags

You can have multiple active tags at once — Tracelit stacks them:
Check what’s currently active:

Trigger mode + feature tagging

If you set replay.mode: 'trigger', recording only starts when you call startReplay(). This is useful on high-traffic sites where you only want recordings of specific flows:

If all features are stopped, the pipeline flushes and recording pauses until the next startReplay() call.

API reference


Use this AI prompt