VOAnalyticsManagerProtocol

@protocol VOAnalyticsManagerProtocol

VOAnalyticsManagerProtocol is the interface for tracking analytics. Analytic events will be triggered to a manager implementing this interface.

  • Tracks an analytics event.

    Declaration

    Objective-C

    - (void)trackEvent:(NSString *)event withParams:(NSDictionary *)params;

    Swift

    func trackEvent(_ event: Any!, withParams params: Any!)

    Parameters

    event

    - the name of the analytic event.

    params

    - a list of parameters associated with the event.

  • Tracks anytime a view controller (screen) is presented / shown.

    Declaration

    Objective-C

    - (void)trackScreen:(NSString *)screenName screenClass:(Class)screenClass;

    Swift

    func trackScreen(_ screenName: Any!, screenClass: AnyClass!)

    Parameters

    screenName

    - the name of the screen.

    screenClass

    - the class of the screen.