Set up Convertedin iOS SDK so you can start to Know what your customers do before and after visiting your offline stores. Leverage data and learn what their behavior looks like.
Requirements
The Convertedin iOS SDK requires Xcode 10.1 or later and is compatible with apps targeting iOS 13 or above.
Installation
The iOS SDK is compatible with apps supporting iOS 13 and above. Apps can be written using Swift.
Getting started with the iOS SDK requires a few steps :
1.
Adding pod 'ConvertedInSDK' to your podfile.
2.
Initialize the SDK with your secret key by import ConvertedIn to your AppDelegate file
3.
Authenticate user by Sending user data for segmentation.
4.
Track user events
​
​
Step 1: Adding the dependency
Adding pod 'ConvertedInSDK' to your podfile, then execute pod install in terminal
1
pod 'ConvertedInSDK'
Copied!
​
Step 2: Initialize the SDK
import Convertedin to your AppDelegate file
1
import 'ConvertedIn'
Copied!
then Initialize the
- apikey
- secretkey
- applicationID
If you have implemented a feedback activity or you take the user's feedback in any form just log it bypassing the order id and the feedback questions and answers as follows:
1
funcfeedbackx(){
2
3
let fb =Setfeedback()
4
fb.orderID =1
5
fb.note ="this is a note"
6
fb.feedbackList =[
7
feedBack(title:"Quality of the product", rate:1),
8
feedBack(title:"Quality of sales team", rate:2),
9
feedBack(title:"feed No 3", rate:3),
10
feedBack(title:"feed No 4", rate:4),
11
feedBack(title:"sfdfsd", rate:5)
12
]
13
Events.orderFeedback(feed: fb)
14
15
}
Copied!
in the Feedback rate
the number 1: mean very bad rate
the number 5: mean Excellent rate