Last Updated: February 25, 2016
·
1.391K
· michaelcarter

Export your Mixpanel data with a Javascript

Mixpanel Data Export JS is a Javascript library for Mixpanel's data export API. Use it to create dashboards, visualisations or simply to pull your Mixpanel analytics data out of Mixpanel.

Example

$(document).ready(function() {

  panel = new MixpanelExport({
    api_key: "my_api_key",
    api_secret: "my_api_secret"
  });

  result = panel.retention({
    from_date: "2013-06-13", 
    to_date: "2013-06-29", 
    born_event: "Rendering items"
  });

  result.done(function (data) {
    console.log(data);
  });

});