Overview
This article explains how the Userpilot SDK tracks and logs events related to flows within the Analytics tab. It covers the logic behind each event type, what they represent, and how this data helps you evaluate user engagement, identify drop-offs, and measure the overall effectiveness of your flows. The SDK records key events at both the flow and step levels, offering detailed insights into how users interact with your in-app experiences.The goal of tracking these events
- Identifying how users interact with multi-step experiences
- Measuring completion rates and friction points
- Enabling targeted improvements to onboarding, adoption, and engagement flows
Key Metrics and completion overview
Key metrics for the flow
- Total Shown: the number of unique users who received and saw the flow on their device.
- Completed: the number of users who completed all the flow steps.
- Dismissed: the number of users who dismissed the flow.
- Average Time to Complete: the average time it took users to complete all the flow steps.

Each metric includes a visual indicator (green or red arrow) showing the percentage change compared to the previous period (e.g., +3% from the last 7 days).
SDK rules
This section breaks down the logic the SDK follows to track each flow event shown in the Analytics tab:Total shown
Trigger conditions- User views at least one step of the flow (even without interaction)
- User reaches the final step (counted as complete even without interaction)
Completed
Trigger conditions- User completes all the flow steps
- User interacts with a button that executes a dismiss - Mark flow as completed action

- User clicks on the button that contains any action except dismiss

- User clicks on the image that contains any action, as shown in the screenshot below

- If the flow step contains logic that references a step that doesn’t exist, the SDK should skip that step and mark the flow/step as completed.

Dismissed
- Clicks a CTA with a dismiss action (e.g. Dismiss and never show again)
- Press the ESC key
- Refreshes the page
- Navigates away mid-flow
- Flow exits due to frequency limit (e.g. shown once only)
NoteYou might notice that Dismiss and Complete events sometimes add up to more than the total Show count. This usually happens based on how users interact with the last step of the flow.For example, if a user reaches the final step and clicks the dismiss icon, Userpilot will log both a Complete and Dismiss event for that user.
To avoid this and track only one event (like Complete), you can:


- Set the button action to “Dismiss and mark flow as completed”, or any other action
- Set the dismiss icon action to “Go to next step”


Filters and segmentation
You can filter the data by:- Segment - based on the defined user segments you created.
- Company - filter by specific company segments you created.

Performance trends
The Performance graph helps you visualize user interactions over time. It displays daily counts for:- Started
- Completed
- Dismissed

Steps Breakdown
This section shows how users interact with each step of your flow, especially helpful for multi-step flows. It helps you identify where users are most likely to drop off, so you can pinpoint steps that may need improvement or optimization.
You can click on the Shown, Drop-off, or Completed count to view the list of users who performed that action.
User-level activity table
Below the graph, the User Activity section provides detailed breakdowns at the individual user level, including:- Name and ID: displays the user’s name or identifier. Useful for recognizing individual users in the activity list.
- Shown: the number of times the flow was delivered and displayed to the user.
- Seen: the timestamp or time period indicating when the user last received or saw the flow.
- Completed: indicates whether the user completed all flow steps.
- Dismissed: shows if the user dismissed any step in the flow.
- Goal Completed at: the date and time when the user completed a defined goal after seeing the flow.

Goal tracking
If your flow includes a goal (e.g., “Perform an Action”), Userpilot also displays:- Unique Users Seen - the number of unique recipients the goal applied to.
- Goal Completion - the number of recipients who achieved the defined goal.

For any questions or concerns, please reach out to support@userpilot.com