I'm confused by the necessity for this?<p>If you use the integration code demonstrated in their docs here: <a href="https://mixpanel.com/help/reference/javascript" rel="nofollow">https://mixpanel.com/help/reference/javascript</a>, Mixpanel already has an event queue natively.<p>It sets the `mixpanel` variable to an array which which holds the event queue. It then defines functions on this array with the same names as those in the full library. When any of them are called the call is added to the event queue array.<p>When the full library loads, the array of queued events is placed in a temporary variable. The full library is loaded into the `mixpanel` variable and then the the queue is replayed by the full library.<p>analytics.js also works in this way
This is my first open-source project. I was frustrated that Mixpanel did not natively include a queueing system for events (a la Google Analytics, KISSmetrics, etc) so I built one. Hope others find it useful and welcome any feedback.