Skip to content

sizigi/amplitude_ex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amplitude_ex

An Elixir client for the Amplitude HTTP API

Installation

If available in Hex, the package can be installed as:

  1. Add amplitude to your list of dependencies in mix.exs:
def deps do
  [{:amplitude, "~> 0.1.0"}]
end
  1. Ensure amplitude is started before your application:
def application do
  [applications: [:amplitude]]
end
  1. Add an Amplitude API key to your application config file:
config :amplitude, api_key: "<your_api_key>"

Usage

  1. Track events with the Amplitude.track/4 function:
iex> Amplitude.track("my_event", "jdoe_123", %{"ip" => "127.0.0.1"}, %{"cohort" => "Test A"})
{:ok, "success"}

About

An Elixir client for the Amplitude HTTP API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elixir 100.0%