FirebaseTracker

open class FirebaseTracker : Tracker

FirebaseAnalytics Tracker

  • Calls the enable function of the analytics collection function of the FirebaseAnalytics framework.

    Declaration

    Swift

    open override func start()
  • Sets the analytics collection enabled or disabled.

    Declaration

    Swift

    override open func setTracking(enabled: Bool)
  • Track data in the TrackingParameters struct into FirebaseAnalytics.

    Uses the paramater mapper to map the Tracking parameters to those used by Firebase Analytics.

    This mapping uses the following parameters:

    event name name category contentType itemId description

    Declaration

    Swift

    override open func track(trackingParameters: TrackingParameters)

    Parameters

    trackingParameters

    TrackingParameters struct

  • Track the error using logEvent and the UserInfo dictionary.

    Declaration

    Swift

    override open func track(error: NSError)
  • Track screen name and class.

    Using the custom keys and values, use the StanwoodAnalytics.Key.screenName key

    Declaration

    Swift

    override open func track(trackerKeys: TrackerKeys)