Error Tracking
Monitor JavaScript errors and resource loading failures across your website.
VitalSentinel automatically captures JavaScript errors and resource loading failures from your website visitors, helping you identify and fix issues before they impact user experience.
How It Works
The RUM script automatically captures:
- JavaScript Errors - Uncaught exceptions and promise rejections
- Resource Errors - Failed image, script, and stylesheet loads
- Console Errors - Errors logged to the browser console
Errors are aggregated and grouped by type, making it easy to prioritize fixes.
Dashboard Overview
Navigate to Domain → RUM → Errors to see:
Summary Statistics
| Metric | Description |
|---|---|
| Total Errors | Total error occurrences in the period |
| Affected Sessions | Number of sessions with at least one error |
| Affected Sessions % | Percentage of all sessions affected |
Error List
Each error shows:
| Field | Description |
|---|---|
| Error Message | The error message text |
| Error Type | Category of error (JS, resource, etc.) |
| Count | Number of occurrences |
| Last Occurred | Most recent occurrence |
Filtering Errors
Filter the error list by:
Error Type
- JavaScript - Runtime JS errors
- Resource - Failed resource loads
- Promise - Unhandled promise rejections
Browser
Filter by browser to identify browser-specific issues:
- Chrome
- Firefox
- Safari
- Edge
Operating System
Filter by OS to find platform-specific problems:
- Windows
- macOS
- iOS
- Android
- Linux
Device Type
Filter by device category:
- Desktop
- Mobile
- Tablet
Error Details
Click any error to see more details:
Occurrence Information
- First seen date
- Last seen date
- Total occurrences
- Trend (increasing/decreasing)
Affected Browsers
Breakdown of which browsers experience this error most frequently.
Affected Pages
Which pages on your site trigger this error.
Common Error Types
Uncaught TypeError
Usually caused by:
- Accessing properties of undefined/null
- Calling non-functions
- Invalid type operations
Example:
Uncaught TypeError: Cannot read property 'foo' of undefinedUncaught ReferenceError
Usually caused by:
- Using undefined variables
- Typos in variable names
- Script loading order issues
Example:
Uncaught ReferenceError: myFunction is not definedResource Loading Errors
Failed to load external resources:
| Resource | Common Causes |
|---|---|
| Images | 404, wrong path, CDN issues |
| Scripts | 404, CORS blocked, CDN issues |
| Stylesheets | 404, wrong path |
| Fonts | CORS, 404, format issues |
Network Errors
API and fetch failures:
- Server errors (500)
- CORS issues
- Timeout errors
- Network disconnection
Best Practices
Prioritize by Impact
Focus on errors affecting the most sessions:
- Sort by affected sessions percentage
- Fix high-impact errors first
- Monitor trends after fixes
Check Browser Distribution
If an error only occurs in one browser:
- Check browser compatibility
- Review polyfills
- Test in that browser specifically
Monitor After Deployments
After releasing new code:
- Check for new errors
- Compare error counts before/after
- Roll back if necessary
Set Up Alerts
Create alerts for error spikes:
- Go to Alerts
- Create a RUM alert
- Set condition: Error Count > threshold
- Get notified when errors increase