Transmit events to Mixpanel that were logged to a queue using RabbitMQ. Just
push the JSON representation of your event to a durable RabbitMQ queue called
mixpanel
. mixpanel-rabbit inserts your Mixpanel token, base64-encodes the
data and sends it to Mixpanel.
Erlang (R14) and RabbitMQ (2.8) needs to be installed. Different versions might work.
The queue name is hardwired to "mixpanel".
- Transmit multiple events concurrently (asynchronous HTTP requests)
- Retry transmission in case of connection problems
- Insert Mixpanel token and timestamp if not specified in message
Get the required libraries:
./rebar get-deps
Build the application:
./rebar clean compile generate
Edit rel/mixpanel/releases/*/sys.config
and insert your Mixpanel token.
Run:
./rel/mixpanel/bin/mixpanel start
Copy rel/mixpanel
to a folder on the destination server.