Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 955 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 955 Bytes

ErrorSnap SDK

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.

🚀 Instruction

  • 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.