View Source MixpanelClientEx (mixpanel_client_ex v1.1.2)
Link to this section Summary
Link to this section Functions
Set properties on a profile
parameters
Parameters
- distinct_id: String that represents the id of the profile.
- properties: Map containing all metadata you want to associate to the profile
examples
Examples
MixpanelClientEx.engage("user-42", %{"$email" => "john@doe.com"})
Track an Event
parameters
Parameters
- event: String that represents the name of the tracked event.
- distinct_id: String that represents the id of the tracked user.
- properties: Map containing all metadata you want to associate to the event
examples
Examples
MixpanelClientEx.track("User logged in", "user-42")
MixpanelClientEx.track("User logged in", "user-42", %{"source" => "mobile_app"})
MixpanelClientEx.track("User logged in", "user-42", %{"source" => "mobile_app", "time" => 1640991600})