Created
April 5, 2012 17:23
-
-
Save chexov/2312658 to your computer and use it in GitHub Desktop.
Mixpanel js error tracking
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
<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