Created
November 7, 2012 06:58
-
-
Save alvinwoon/4029913 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
window.onerror = function(message, file, line) { | |
var sFormattedMessage = '[' + file + ' (' + line + ')] ' + message; | |
_gaq.push(['_trackEvent', 'Exceptions', 'Application', sFormattedMessage, null, true]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment