A simple JavaScript error report application integrated with Google Analytics.
It's easy to use, just setup your Google Analytics and insert Lapsus.js into your project.
<!-- Google Analytics: change UA-XXXXX-X to your site's ID. -->
<script>
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
<!-- Import Lapsus.js -->
<script src="js/lapsus.js"></script>
The error report will be available in the Google Analytics tab Events with the category: Errors.
All browsers (Firefox, Chrome, Safari, Opera, IE6+) should be supported. Please open an issue if Lapsus.js doesn't work on a particular browser.
Anyone and everyone is welcome to contribute.
Licensed under the MIT license.
Copyright © 2012 Evandro Eisinger