All Analytics/Events related API's are part of WebEngage iOS SDK's WEGAnalytics Object.

You get an instance of WebEngage WEGAnalytics object as follows:

// Get an instance of `WEGAnalytics` object
id<WEGAnalytics> weAnalytics = [WebEngage sharedInstance].analytics;

After WebEngage has been successfully initialized you can track an event by using following apis on WEGAnalytics Object:

Event Tracking API

-(void) trackEventWithName:(NSString*)eventName andValue:(NSDictionary*)eventValue;
-(void) trackEventWithName:(NSString*)eventName;


Learn how to integrate WebEngage with Swift application. For a general understanding on how to use objective C APIs in Swift Code, visit here.