Skip to content

Pankrat/mixpanel-rabbit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mixpanel Event Queue

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".

Features

  • Transmit multiple events concurrently (asynchronous HTTP requests)
  • Retry transmission in case of connection problems
  • Insert Mixpanel token and timestamp if not specified in message

Usage

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

Deployment

Copy rel/mixpanel to a folder on the destination server.

About

Transmit queued events to Mixpanel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published