- Notifications
You must be signed in to change notification settings - Fork1
License
NotificationsYou must be signed in to change notification settings
blendmedia/mexpanel
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
API wrapper forMixpanel
Ifavailable in Hex, the package can be installedby addingmexpanel to your list of dependencies inmix.exs:
defdepsdo[{:mexpanel,"~> 0.1.0"}]end
Mixpanel provides 2 endpoints:track andengage.
For both these endpoints, this library provides a struct withbuilder functions. Thenew function expects all mandatory parameters, additional properties can be set with functions
aliasMexpanel.TrackRequesttrack=TrackRequest.new("123","user signed up",%{name:"Leif Gensert"})|>TrackRequest.time(DateTime.utc_now())|>TrackRequest.ip("144.10.58.141")|>TrackRequest.distinct_id("user:1")Mexpanel.request(track)
For the engage endpoint you will need to specify an operation. See theofficial documentation for all available operations.
aliasMexpanel.EngageRequestengage=EngageRequest.new("123","user:1")|>EngageRequest.time(DateTime.utc_now())|>EngageRequest.ip("144.10.58.141")|>EngageRequest.set(%{name:"Leif Gensert"})Mexpanel.request(engage)
About
No description, website, or topics provided.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.