Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michihuber/mixpanel_ex
An Elixir client for the Mixpanel HTTP API
https://github.com/michihuber/mixpanel_ex
Last synced: 3 months ago
JSON representation
An Elixir client for the Mixpanel HTTP API
- Host: GitHub
- URL: https://github.com/michihuber/mixpanel_ex
- Owner: michihuber
- License: mit
- Created: 2014-12-21T18:00:30.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-11-05T12:35:22.000Z (about 8 years ago)
- Last Synced: 2024-10-07T00:26:38.582Z (4 months ago)
- Language: Elixir
- Size: 159 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - An Elixir client for the Mixpanel HTTP API. (Third Party APIs)
- fucking-awesome-elixir - mixpanel - An Elixir client for the Mixpanel HTTP API. (Third Party APIs)
- awesome-elixir - mixpanel - An Elixir client for the Mixpanel HTTP API. (Third Party APIs)
README
# MixpanelEx
An Elixir client for the Mixpanel HTTP API. See mixpanel.com.
## Usage
1) Add mixpanel to your deps:```elixir
{:mixpanel, "0.0.1"}
```2) Add `:mixpanel` to the list of application dependencies in your `mix.exs`.
```elixir
def application do
[applications: [:logger, :mixpanel]]
end
```3) Add your mixpanel token to your `config/config.exs` (or similar):
```elixir
config :mixpanel, token: ""
```4) Track events with `Mixpanel.track`:
```elixir
Mixpanel.track("login", distinct_id: 123)
Mixpanel.track("visited TOS")
```## License
MIT