-
Start the tracking
Declaration
Swift
open override func start()
-
Enable tracking. This method employs the opt-out flag in the framework.
Declaration
Swift
override open func setTracking(enabled: Bool)
Parameters
enabled
enable flag
-
Track the parameters. If a map function is defined and screen name if not nil, it calls
Declaration
Swift
override open func track(trackingParameters: TrackingParameters)
Parameters
trackingParameters
Tracking parameters struct
-
Track NSError as a non-fatal exception.
Declaration
Swift
override open func track(error: NSError)
Parameters
error
NSError
-
Track custom keys
It is necessary to add a custom mapper for this to work, and implement the mapKeys function, because the default is nil.
The implementation here requires [Int:String] as the Int is a custom dimention parameter in GA.
Declaration
Swift
override open func track(trackerKeys: TrackerKeys)
Parameters
trackerKeys
tracker keys struct