Skip to content

Instantly share code, notes, and snippets.

@michaelcarter
Created August 10, 2014 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelcarter/e3479beae896743fbd9d to your computer and use it in GitHub Desktop.
Save michaelcarter/e3479beae896743fbd9d to your computer and use it in GitHub Desktop.
Mixpanel Data Export JS in your browser
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
<script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/md5.js"></script>
<script src="mixpanel_data_export_min.js"></script>
<script type="text/javascript">
panel = new MixpanelExport({
api_key: "api_key_here",
api_secret: "api_secret_here"
});
var loadEvents = function() {
result = panel.names({
type: "general"
}, function(data) {
console.log(data);
});
}
</script>
</head>
<body onload="loadEvents()">
</body>
</html>
@cooncesean
Copy link

Thank so much Michael :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment