How does it work?

In essence JS-Analytics works exactly like Google Analytics, except that instead of measuring page views. JS-Analytics measure the javascript errors of your site. A few lines of Java-script code is all that you need to add to your website to start collecting errors.


When you log in to JS-Analytics you will be asked to create a project. A project is where all errors are collected, usually errors revolve around a website or features of a website. Each project has a project page, that provides you with everything you need to work with JS-Analytics for your project.

Just like Google Analytics, to use JS-Analytics you add a small javascript to your webpage. This script is provided for you on your project page. Cut and paste this script on to your site and JS-Analytics will start collecting errors for you immidietly. The script will add a script tag to your website and initiate the JS-Analytics monitor. The monitor watches for any unhandled exception and sends information about the error back to JS-Analytics. You can get an overview of of all reported errors on your project page

There are several options for how the monitor will operate on your webpage, please take some time to view the examples and content provided for you on your project page.

Detecting errors

JS-Analytics use two means of detecting errors, one is at the browser level and one at the library level. JS-Analytics switches between these methods to ensure that the maximum amount of information is collected when an error occurs.
In detail, some browsers implement a callback called windowerror. This event is implemented differently in all browsers, and in some it isn't implemented at all. To make sure that errors are collected across browsers the JS-Analytics monitor will override JQuery to try and capture any errors caused with the code used with JQuery.

 BrowserInternet Explorer
 Webkit based (Safari/Chrome...)
Partial Cover
Not implemented
Not implemented
 JQueryPartial CoverPartial CoverPartial Cover
Partial Cover
 Total coverage
CoveredCoveredPartial CoverPartial Cover

Once an error is detected

JS-Analytics will try to collect as much information about the fault as possible, and send the information to be logged to JS-Analytics collection endpoint. The errors can then be viewed on the JS-Analytics error page for your particular project. JS-Analytics will calculate the number of occurences for a particular error over the last 30 days, providing you with an effective way to see where your website can improve in terms of error handling.