Getting started with Errorception

Just copy-paste a script snippet, and you're done!

When you sign up with Errorception, you will be given a custom script tag. Simply copy-paste the script tag to your site, such that it is located before all other script tags, and deploy. You will start recording errors immediately.

The following script tag is an example of what you'd get.

<!-- Sample code. Don't use this! Use the snippet in your settings instead. -->
<script>
    (function(_,e,rr,s){_._errs=[s];var c=_.onerror;_.onerror=function(){var a=arguments;_errs.push(a);
    c&&c.apply(this,a)};var b=function(){var c=e.createElement(rr),b=e.getElementsByTagName(rr)[0];
    c.src="//beacon.errorception.com/"+s+".js";c.async=!0;b.parentNode.insertBefore(c,b)};
    _.addEventListener?_.addEventListener("load",b,!1):_.attachEvent("onload",b)})
    (window,document,"script","your-project-id");
</script>

This code above, even if somewhat cryptic, has been optimised to give you very high performance at all times, and to ensure that your site is not affected even if Errorception's servers go down. All network calls are asynchronous and are deferred until after window.onload is fired. This ensures that your page load process isn't affected at all, while still letting you record errors right from the very beginning. Your users will not see any performance impact whatsoever. Read more about Errorception's performance care.

If you are serving your files from a CDN, or from a domain different from that of your site, you should read the notes about setting up CORS.