Installation Event Tracking
Events are all the actions performed by the user on the mobile application. Netcore CE SDK enables you to record user events and later learn more about your app’s usage patterns and to segment your users, target, and personalize messaging based on the events performed by them.
Track App Update And Install Event
If you want Netcore CE to handle App Update and Install events then you can add method trackAppInstallUpdateBySmartech in didFinishLaunchingWithOptions in AppDelegate class
[[Smartech sharedInstance] trackAppInstallUpdateBySmartech];
//Implementation of method
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[Smartech sharedInstance] initSDKWithDelegate:self withLaunchOptions:launchOptions];
[UNUserNotificationCenter currentNotificationCenter].delegate = self;
[[Smartech sharedInstance] trackAppInstallUpdateBySmartech];
return YES;
}
Smartech.sharedInstance().trackAppInstallUpdateBySmartech()
//Implementation of method
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
Smartech.sharedInstance().initSDK(with: self, withLaunchOptions: launchOptions)
UNUserNotificationCenter.current().delegate = self
Smartech.sharedInstance().trackAppInstallUpdateBySmartech()
return true
}
SmartechSDK.trackAppInstallUpdateBySmartech();
After implementing the above method whenever the user will launch the app after launching the app with Netcore CE SDK for the first time, the event for that user will be sent to Netcore CE panel as the app installed.
If you have a logic implemented in your code to track App Install and Update then you can use two methods trackAppInstall and trackAppUpdate.
//To send App Install event
[[Smartech sharedInstance] trackAppInstall];
//To send App Update event
[[Smartech sharedInstance] trackAppUpdate];
//To send App Install event
Smartech.sharedInstance().trackAppInstall()
//To send App Update event
Smartech.sharedInstance().trackAppUpdate()
//To send App Install event
SmartechSDK.trackAppInstall();
//To send App Update event
SmartechSDK.trackAppUpdate();
Updated 2 months ago