The ErrorSnap SDK allows you to easily integrate ErrorSnap error tracking into your web application. Once integrated, your app will start sending error reports to the ErrorSnap platform for analysis, tracking, and resolution.
- Copy the project id which you want to track error
- in your project index.html put this script `
<script>
window.addEventListener('load', () => {
const script = document.createElement('script');
script.src = "https://errorsnap-sdk.netlify.app/";
script.onload = () => {
const app = new ErrorSnap({
projectId: "your-project-id", // Replace with your actual project ID
});
app.initialize();
};
document.body.appendChild(script);
});
</script>
And you are good to go :)
For testing purposes, I created a demo page, where you can just put your project ID and test your errors.