Skip to content

Instantly share code, notes, and snippets.

@frekw
Created August 16, 2011 14:36
Show Gist options
  • Save frekw/1149226 to your computer and use it in GitHub Desktop.
Save frekw/1149226 to your computer and use it in GitHub Desktop.
window.onerror = function(msg, url, line) {
_gaq.push(['_trackEvent', 'Error Log', msg, url + '_' + line]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment