Use event history to target an in-app experience based on actions a user has already taken.

Survey targeting condition menu showing User attribute, Saved segment, Event history, Current page, and Experience state

Survey targeting condition menu showing User attribute, Saved segment, Event history, Current page, and Experience state in the Atlas demo workspace.

Track and verify an event

Send an event after initializing the Userorbit SDK:

await userorbit.track("onboarding_completed");
JavaScript

Use stable event names and confirm the event reaches the intended Analytics project before adding it to targeting.

Add an event-history condition

  1. Open the experience's targeting settings and choose Specific users.
  2. Select Filter and choose Event history as its source.
  3. Select the event.
  4. Choose the check: Occurred, Did not occur, Event count, First occurred, Last occurred, or Most recent occurrence.
  5. Complete the comparison and time fields shown for that check.
  6. Combine it with other conditions using All (AND) or Any (OR).
  7. Save and test with users whose event histories you know.

Eligibility and launch events

Event history decides whether a user qualifies. Immediate launch events remain configured separately and determine when the experience starts. For example, a past onboarding event can qualify a user while a later page visit starts the experience.

If the experience does not appear, check its publication, audience conditions, launch event, frequency, and schedule. Also confirm the event was tracked for the same identified user and project.

Was this helpful?