Last Updated: February 25, 2016
·
1.68K
· 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);
  });

});
```

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside