amplitude v0.3.0 Amplitude

Functions for the Track and Indetify Amplitude APIs

Link to this section Summary

Functions

Identify a user with custom user properties and/or Amplitude specified user properties

Link to this section Functions

Link to this function

identify(user_id, user_props, identify_props \\ %{}, opts \\ [])

Identify a user with custom user properties and/or Amplitude specified user properties

iex> {:ok, response} = Amplitude.identify("janedoe_123", %{"gender" => "female", "email": "jdoe_123@example.com"}, %{"country" => "United States"})
...> response
"success"
Link to this function

track(event_type, user_id, event_props \\ %{}, user_props \\ %{}, opts \\ [])

Track an event with specified properties

iex> {:ok, response} = Amplitude.track("my_event", "janedoe_123", %{"ip" => "127.0.0.1"}, %{"cohort" => "Test A"})
...> response
"success"