Mxpanel.Event (Mxpanel v0.3.0) View Source
Struct representing a Mixpanel Event
Link to this section Summary
Link to this section Types
Specs
Link to this section Functions
Specs
Create a new event.
Mxpanel.Event.new("signup", "13793")
Mxpanel.Event.new("signup", "13793", %{"Favourite Color" => "Red"})
Mxpanel.Event.new("signup", "13793", %{}, ip: "72.229.28.185")
Mxpanel.Event.new("signup", "13793", %{}, time: 1624811298)
Options
:time
- Specific timestamp in seconds of the event. Defaults toSystem.os_time(:second)
.:ip
- IP address to get automatic geolocation info.
Specs
Serialize a event into the format expected by the Mixpanel API.