MixpanelEx
An Elixir client for the Mixpanel HTTP API. See mixpanel.com.
Usage
- Add mixpanel to your deps:
{:mixpanel, "0.1.0"}Add
:mixpanelto your applications.Add your mixpanel token to your
config/config.exs(or similar):
config :mixpanel, token: <YOUR API TOKEN HERE>-
Track events with
Mixpanel.track:
Mixpanel.track("login", [distinct_id: 123])
Mixpanel.track("visited TOS")License
MIT