Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Latest commit

 

History

History
34 lines (24 loc) · 624 Bytes

File metadata and controls

34 lines (24 loc) · 624 Bytes

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.