Analytics
- 20 Jun 2023
- 1 Minute to read
- DarkLight
Analytics
- Updated on 20 Jun 2023
- 1 Minute to read
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback!
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.
// Send analytics event
ULAnalitycs.sendPMSelectedEvent()
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.
// Send analytics event
ULAnalitycs.sendPMDeselectedEventWithCause("Other Payment Option")
sendSubmitEventWithVirtualCard
sendSubmitEventWithVirtualCard
should be called when the virtual payment card has been recieved and the booking is being processed.
/**
* You can find a Kotlin example in the example project's PayViewModel.kt file
* in the "handleAction" method.
*/
ULAnalitycs.sendSubmitEventWithVirtualCard(virtualCard, tripInfo)
Was this article helpful?