onUIEvent callback function, it is possible to track what the users are doing within Argyle Link.
This provides a better understanding of users’ behavior and allows you to troubleshoot and optimize conversion rates.
Persistent properties
TheonUIEvent is invoked when specific events are activated. These events are passed with a data object with persistent properties as follows:
linkItem(string) — Link Item ID.accountId(string) — Account ID.userId(string) — User ID.deepLink(boolean) — Activates deep-linking. Can betrueorfalse.
onUIEvent callback example:
Event-specific properties
In addition to the persistent properties, events can have specific properties. Find below all the Link screens on which events can be triggered and their respective event-specific properties (if applicable):onUIEvent callback example (with event-specific properties):
Intro screen
Search screen
term(string) — The text entered in the search field.tab(string) — The tab that the user has opened when entering text in the search field. This is ignored for an empty term, so if a user deletes the search term, the event callback will not be started. Possible values:All,Employer,Gig,Payroll.
Login screen
errorCode(string) — The error code received while opening the Login screen. Possible values: seeaccounts.connection.error_code.errorMessage(string) — The error message received while opening the Login screen.
MFA screen
type(string) — Denotes whether the user was in the Login screen or Direct deposit opened screen when an MFA screen was shown to the user. Possible values:Login,PDF Review.mfaType(string) — Denotes the type of multi-factor authentication (MFA) method that was required of the user. Possible values:sms_code,email_code,secret_question,email_link_confirmation,otp_code,email_message_conformation.
Success screen
Account Status screen
Direct deposit opened screen
allocationType(string) — Denotes which pay allocation type was shown when the user opened the Direct deposit settings screen. Possible values:percent,amount,none.
Allocation type selection screen
Direct deposit success screen
Account Error Screen
connectionStatus(string) — Represents the status of the link between Argyle and the work platform. Possible values: seeaccounts.connection.status.connectionErrorCode(string) — Provides information on why the connection failed whenconnection.statusiserror. Possible values: seeaccounts.connection.error_code.payDistributionStatus(string) — Denotes the point in the process of the direct deposit update. Possible values: seeaccounts.pay_distribution.status.payDistributionCode(string) — Provides information on why the direct deposit update was unsuccessful whenpay_distribution.statusiserror. Possible values: seeaccounts.pay_distribution.error_code.
Error screen
errorType(string) — The type of error received while opening Link. Possible values:generic,invalid_link_items,invalid_pd_config,invalid_link_key,invalid_user_token.