Analytics

Universal analytics client, currently only supports Mixpanel and Segment.io. We use it in production.

Installation

The package can be installed by adding analytics to your list of dependencies in mix.exs:

def deps do
  [
    {:analytics, "~> 0.5.0"}
  ]
end

And set your Mixpanel token in config.ex:

config :analytics, :mixpanel,
  token: "my_mixpanel_token"

or Segment config:

config :analytics, :segment,
  write_key: "my_write_key"

The docs can be found at https://hexdocs.pm/analytics.

License

See LICENSE.md.