View Source MixpanelClientEx (mixpanel_client_ex v1.0.1)

Link to this section Summary

Link to this section Functions

Link to this function

engage(distinct_id, properties)

View Source
@spec engage(String.t(), map()) :: Task.t()

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"})
Link to this function

track(event, distinct_id)

View Source
@spec track(String.t(), String.t()) :: Task.t()

Asynchronously 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})
Link to this function

track(event, distinct_id, properties)

View Source
@spec track(String.t(), String.t(), map()) :: Task.t()