View Source Mixpanel.Client (Mixpanel API v1.2.4)
Mixpanel API Client GenServer.
Summary
Functions
Returns a specification to start this module under a supervisor.
Creates an alias for a user profile.
Updates a user profile.
Tracks a event
Types
@type alias_id() :: String.t()
@type distinct_id() :: String.t()
@type init_args() :: [ Mixpanel.Config.option() | GenServer.option() | {Keyword.key(), Keyword.value()}, ... ]
@type properties() :: map()
Functions
@spec child_spec(init_args()) :: %{ id: Mixpanel.Client, start: {Mixpanel.Client, :start_link, [init_args(), ...]} }
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec create_alias(module(), alias_id(), distinct_id()) :: :ok
Creates an alias for a user profile.
See Mixpanel.create_alias/2
.
@spec engage( module(), [{distinct_id(), String.t(), map()}], Mixpanel.engage_options() ) :: :ok
Updates a user profile.
See Mixpanel.engage/4
.
@spec engage(module(), distinct_id(), String.t(), map(), Mixpanel.engage_options()) :: :ok
@spec track(module(), event(), properties(), Mixpanel.track_options()) :: :ok
Tracks a event
See Mixpanel.track/3