SDK Installation
iOS Native
Tracking Events on iOS
2min
tracking events once you integrate the sdk, cooeesdk will automatically start tracking some default system events docid\ facp3yvzawjmrp4ac5z9e apart from these, you must track mandatory events docid\ veiyktdil9dz4qflbhujb as well the event must be tracked once your screen(viewcontroller/swiftui view) is fully loaded the following example demonstrates a view item event \ (void) sendviewitemevent { cooeesdk cooeesdk = \[cooeesdk getinstance]; nsdictionary props = @{ @"item" @{ @"id" @"1234", @"name" @"iphone x", @"category" @{ @"id" @"cat1", @"name" @"smartphones" } } }; @try { \[cooeesdk sendeventwitheventname @"view item" eventproperties\ props error\ nil]; } @catch (nsexception exception) { nslog(@"%@", exception reason); } @finally { nslog(@"finally condition"); } }func sendviewitemevent(){ let cooeesdk = cooeesdk getinstance() let props = \[ "item" \[ "id" "1234", "name" "iphone x", "category" \[ "id" "cat1", "name" "smartphones" ] ] ] do { try cooeesdk sendevent(eventname "view item", eventproperties props) } catch { print("\\(error)") } } important! do not add (dot) in event property key string do not start the event name with ce