How to track conversion
This article suggests how to track your Pinwheel conversion rate, using the same definition Pinwheel uses. Conversion is the number of users who have all required jobs succeed, divided by the number of top-of-funnel users. The mock funnel below describes each step and how to track it.
The best way to track the funnel is to combine two sources. Link events are sent to your client and show what users do inside the Link modal. Webhooks are sent to your server and report the outcome of each job. Use Link events for the steps up to login, and webhooks for the final job outcome.
The funnel at a glance
Step | What it counts | How to track it |
Top of Funnel Users | Users who opened the Link modal |
|
Login Impression | Users who reached the authentication screen |
|
Login Attempted | Users who submitted credentials, whether or not the login worked |
|
Login Success | Users who logged in successfully |
|
Job Attempted | Users who attempted their required jobs | Link |
Job Success | Users whose required jobs all succeeded | Job webhooks with |
Top of Funnel Users
This is the number of users who initiated the Link modal. Track it by listening for the open event, which fires when the modal is opened. Its payload is an empty object.
Login Impression
This is the number of users who reach the authentication screen.
If you use Pinwheel search, track it with the select_platform and select_employer events. These fire when a user picks a platform or an employer on the search page, and their payloads include selectedPlatformId or selectedEmployerId. A user normally selects one or the other to reach login, so combine the two when you count impressions, and count each user once. You can also listen for screen_transition events with screen_name set to LOGIN, which fires when the login screen is shown after a user selects a platform or employer.
If you pass platform_id or employer_id directly when you create the Link token, users skip search, so Login Impression is equal to your top-of-funnel number.
Note that select_employer is not sent for On Demand Updates, because the account_id is already tied to a platform.
Login Attempted
This is the number of users who enter credentials and submit, including both successes and errors.
The
login_attemptevent fires when a user submits a login attempt for the first time, so it is the simplest way to count this step.Alternatively, combine successful logins (the
loginevent) with unsuccessful attempts (theerrorevent, which includes an errorcode,typeandmessage).
Not every error event ends the session. For example, a user can enter incorrect credentials and still continue, so one user can produce several error events. Count unique users or Link sessions, not raw events. See Link Errors for the full list of error types and codes.
Login Success
This is the number of users who logged in successfully. Track it with the login event, whose payload includes the platformId and the new accountId. On your server, the account.added webhook is sent when a user successfully logs in, and it corresponds to the login callback in Link. It includes the link_token_id, which lets you tie the login back to the user who started the session.
Job Attempted
This is the number of users who attempted their required jobs.
For Income, Employment, Paystubs, Shifts, Identity and Direct Deposit Allocation jobs, a user counts as attempting the jobs automatically once they log in, because the jobs run in the background after login.
For Direct Deposit Switch/Payment, a user counts once they complete the direct deposit setup step. Track this with the
successanderrorLink events, using the error codes related to direct deposit. Theinput_allocationevent, which fires when a user submits an allocation, is also available.
If an error event has pendingRetry set to true, the job will be retried within 24 hours and the final result arrives by webhook. Do not treat that user as a failure yet.
Job Success
This is the number of users whose required jobs all succeeded, and it is the numerator of your conversion rate.
For Direct Deposit Switch/Payment, listen for the
successLink event and the corresponding webhook. For a Direct Deposit Switch, that webhook isdirect_deposit_switch.added.For Income, Employment, Paystubs, Shifts, Identity and Direct Deposit Allocation jobs, listen to each job's webhook:
income.added,employment.added,paystubs.added,shifts.added,identity.addedanddirect_deposit_allocations.added. The Income and Employment and Direct Deposit webhook references list the payloads.
The Link success event is not enough on its own for read jobs. For jobs other than direct deposit and card switch, it fires when the user logs in successfully, because those jobs finish in the background afterward. Use the webhooks to confirm that each job actually succeeded.
Every job webhook includes an outcome of success, error or pending. A pending job will be retried for up to 24 hours and you will receive another webhook with the final outcome. A user counts as a Job Success when every job on their Link token has a webhook with outcome of success.
Calculating conversion
Overall conversion is Job Success divided by Top of Funnel Users. To find where users drop off, divide each step by the one before it, for example Login Success divided by Login Attempted.
A few practices keep the numbers accurate:
Count unique users or Link sessions at each step, not raw events. A user can retry a login or trigger several events.
Match job webhooks to users with
account_id,end_user_idorlink_token_id. Thelink_token_idin theaccount.addedwebhook ties an account to the Link token you created.Deduplicate webhooks with
event_id. Webhooks are delivered at least once, so the same event can occasionally arrive more than once.Handle new values. Pinwheel can add new
screen_namevalues and new events, so make sure unrecognized ones don't break your tracking.
If you need help setting up funnel tracking, contact your Pinwheel representative.