Event Handlers
Event Handlers for Tracking (Personal Loans, Web Wrapper)
Usage
<WebWrapper
channel="your-channel"
zone="your-zone"
bearerToken="{your_token}"
productTypes={[ApiModels.ProductType.Loan]}
onInitialize={(evt) => console.log('onInitialize', evt)}
onCreate={(evt) => console.log('onCreate', evt.leadUuid)}
onSubmit={(evt) => console.log('onSubmit', evt.leadUuid)}
onOfferClick={(evt) => console.log('onOfferClick', evt.offerUuid)}
onExit={(evt) => console.log('onExit', evt)}
// ...other callbacks
/>EngineSDK(
channel: 'your_channel',
zone: 'your_zone',
bearerToken: '{your_token}',
productTypes: const [engine.ProductType.loan],
onInitialize: (event) {
print('SDK initialized at ${event.timestamp}');
},
onCreate: (event) {
print('Lead created: ${event.leadUuid}');
},
onSubmit: (event) {
print('Lead submitted: ${event.leadUuid}');
},
onOfferClick: (event) {
print('Offer clicked: ${event.offerUuid}');
print('Lender: ${event.financialInstitutionName}');
print('APR: ${event.apr}');
},
onExit: (event) {
print('User exited at ${event.timestamp}');
// Navigate the user back or perform cleanup
},
// ...other callbacks
)Available Events
Callback
Trigger
Event Properties
onInitialize
Field
Type
Description
onCreate
Field
Type
Description
onUpdate
Field
Type
Description
onNavigate
Field
Type
Description
onSubmit
Field
Type
Description
onRateTableRender
Field
Type
Description
onOfferClick
Field
Type
Description
onErrorPageView
Field
Type
Description
onErrorPageRetry
Field
Type
Description
onExit
Field
Type
Description
onEmbedError
Field
Type
Description
onEmbedErrorRetry
Field
Type
Description
Last updated
Was this helpful?