The trackViews method is used to track the current view of the application. The developer should invoke this method in the viewDidLoad().
Method
@objc public func trackViews(freindlyN:String, ObjRef: Any, ViewRef: Any, controller: UIViewController, addGeo: Bool)
Parameters
friendlyN - The client defined view name.
childView(ObjRef) - The view object of the child view. It is an optional parameter.
parentView(ViewRef) - The view object of the parent view. It is an optional parameter.
controller - The current view.
addGeo - Flag used to decide whether to append the geo parameter(latitude and longitude) in the Payloads or Not.
Example
Tracker.shared.trackViews(freindlyN: "onClick Tracking View",
ObjRef: self.view!,
ViewRef: self.view!,
controller: self,
addGeo: true)