Created
March 14, 2016 22:27
-
-
Save irfan/d70db467ec703aa10e36 to your computer and use it in GitHub Desktop.
Mixpanel js error tracking
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
| <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