Autocapture

open class Autocapture

Access to autocapture tracking methods, available as an accessible variable from the main Mixpanel instance.

  • Track a screen view event. This is a convenience method for tracking when users view a screen/page in your application.

    Declaration

    Swift

    open func trackScreenView(screenName: String, properties: Properties? = nil)

    Parameters

    screenName

    The name of the screen/page being viewed

    properties

    Optional properties to include with this event

  • Track a screen leave event. This is a convenience method for tracking when users leave a screen/page in your application.

    Declaration

    Swift

    open func trackScreenLeave(screenName: String, properties: Properties? = nil)

    Parameters

    screenName

    The name of the screen/page being left

    properties

    Optional properties to include with this event