Skip to content

Instantly share code, notes, and snippets.

@irfan
Created March 14, 2016 22:27
Show Gist options
  • Save irfan/d70db467ec703aa10e36 to your computer and use it in GitHub Desktop.
Save irfan/d70db467ec703aa10e36 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',prop);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment