Installation K
This process needs to be followed only once, the first time you need to install the SDK in your project. Please refer to the Update section to see the instructions for subsequent updates.
- Add the following package: https://github.com/KlipFit/kleep-spm
- Change dependency rule to: up to next major version
Permissions
Add the following permission to your project on info.plist: NSCameraUsageDescription
Usage
Method 1: requestSize
This method allows to implement the logic of the CTA.
| parameter | priority | description |
|---|---|---|
| productID | required | You product ID |
| retailerName | required | Name of the retailer |
| customerID | optional | CRM identifier, used for analytics |
| trackingID | optional | User ID used by external tracking solution |
Method 2: loadView
This method is called when the CTA is clicked. It allows to load the different screens. The developper integrating the SDK should embed them into a bottom sheet.
| parameter | priority | description |
|---|---|---|
| productID | required | You product ID |
| retailerName | required | Name of the retailer |
| customerID | optional | CRM identifier, used for analytics |
| trackingID | optional | ID used by external tracking provider |
Method 3: track
This method allows to track custom events.
| parameter | priority | description |
|---|---|---|
| eventName | required | Name of the event to track |
| params | optional | Info associated to the event |
| eventName | Trigger |
|---|---|
product_viewed | Upon PDP viewed |
product_added_to_cart | Upon product added to the cart |
checkout_completed | Upon order confirmation after the payment |
product_viewed
Untitled
Example
product_added_to_cart
Untitled
Example
checkout_completed
Untitled
Example
