Skip to content

Instantly share code, notes, and snippets.

@chexov
Created April 5, 2012 17:23
Show Gist options
  • Save chexov/2312658 to your computer and use it in GitHub Desktop.
Save chexov/2312658 to your computer and use it in GitHub Desktop.
Mixpanel js error tracking
<script>
window.onerror = function(message, file, line) {
var prop = {}
prop.message = message;
prop.file = file;
prop.line = line;
mpq.track('js-err'r,track_properties);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment