We must first configure Sentry to allow certain hosts to report errors. This prevents abuse so somebody else couldn’t start sending errors to your account from their site.

This can be found under the Project Details page in Sentry.

Now need to set up Raven.js to use your Sentry DSN.


At this point, Raven is ready to capture any uncaught exception.

Although, this technically works, this is not going to yield the greatest results. It’s highly recommended to next check out Usage.

Putting it all together

<!DOCTYPE html>
    <title>Awesome stuff happening here</title>
    <script src="//"></script>
    <script src="jquery.min.js"></script>
    <script src="myapp.js"></script>

Project Versions

Table Of Contents

Previous topic


Next topic


This Page