MixpanelTracker

Mixpanel tracker: Send events to mixpanel analytics library

Implements ITracker

Get unique token from Mixpanel Get Token from Mixpanel

val mixpanelTracker = MixpanelTracker.init(this, "your unique token")
val eventTracker = EventTracker.Builder().addTracker(mixpanelTracker).build()

Check mixpanel documentations for more info

Parameters

context

Application context

token

Unique token to your project

trackAutomaticEvents

Boolean to track common mobile events

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun identify(distinctId: String, usePeople: Boolean = true)
Link copied to clipboard
fun optInTracking(distinctId: String? = null, properties: JSONObject? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun track(eventName: String, eventParameters: HashMap<String, Any>)

Track single event and add parameters as per format supported by mixpanel

Link copied to clipboard
open override fun trackAll()