Skip to content

michihuber/mixpanel_ex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MixpanelEx

An Elixir client for the Mixpanel HTTP API. See mixpanel.com.

Usage

  1. Add mixpanel to your deps:
{:mixpanel, "0.0.1"}
  1. Add :mixpanel to the list of application dependencies in your mix.exs.
  def application do
    [applications: [:logger, :mixpanel]]
  end
  1. Add your mixpanel token to your config/config.exs (or similar):
config :mixpanel, token: "<YOUR API TOKEN HERE>"
  1. Track events with Mixpanel.track:
Mixpanel.track("login", distinct_id: 123)
Mixpanel.track("visited TOS")

License

MIT

About

An Elixir client for the Mixpanel HTTP API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages