The SDK provides three analytic methods that allow for UpLift to track user interaction with UpLift’s checkout flow. This tracking is necessary for customer service and debugging purposes and is strongly advised to be included into the integration.
sendPMSelectedEvent
sendPMSelectedEvent should be called when the customer selects UpLift’s pay monthly option on the checkout page.
runCatching {
ULAnalytics.getInstance().sendPMSelectedEvent()
}.onFailure {
Log.d("UpliftSDK", "SDK has not been initialized properly.")
}
sendPMDeselectedEvent
sendPMDeselectedEvent should be called when the customer deselects UpLift’s pay monthly option on the checkout page. In this case, an extra String parameter which describes what the customer selected instead of this option.
runCatching {
ULAnalytics.getInstance().sendPMDeselectedEventWithCause("Other Payment Option")
}.onFailure {
Log.d("UpliftSDK", "SDK has not been initialized properly.")
}
sendSubmitEventWithVirtualCard
sendSubmitEventWithVirtualCard should be called when the virtual payment card has been recieved and the booking is being processed.
runCatching {
ULAnalytics.getInstance().sendSubmitEventWithVirtualCard(virtualCard, tripInfo)
}.onFailure {
Log.d("UpliftSDK", "SDK has not been initialized properly.")
}