Created
August 10, 2014 18:36
-
-
Save michaelcarter/e3479beae896743fbd9d to your computer and use it in GitHub Desktop.
Mixpanel Data Export JS in your browser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank so much Michael :)