r/umamiengine • u/PrinceSauromates • 9d ago
Umami 3.5.0 introduces Browser Error Tracking
https://umamiengine.comOne of the most interesting additions in Umami 3.5.0 is browser error tracking. It brings JavaScript error monitoring directly into your analytics dashboard, helping you understand not just how visitors use your website, but also when something goes wrong.
Here's what it offers:
- Automatic error tracking: Capture uncaught JavaScript exceptions and unhandled promise rejections.
- Issue grouping: Group related errors instead of dealing with individual error reports.
- Release tracking: Identify which application version and environment are associated with an error.
- Stack traces: Investigate where errors originate.
- Session integration: View the visitor's session and, when available, watch session replays to understand what happened before an error occurred.
- Issue management: Mark issues as resolved or ignored, and reopen them when necessary.
Getting started is simple.
Add data-errors="true" to your existing Umami tracking script:
<script
defer
src="https://your-umami-instance.com/script.js"
data-website-id="your-website-id"
data-errors="true"
data-release="1.2.0"
data-environment="production"
></script>You can also manually report errors handled by your application using:
umami.captureException(error);This is particularly useful for applications that handle exceptions internally using try/catch.
Why does this matter?
Traditional analytics tell you what visitors do, but they don't necessarily tell you when technical problems prevent visitors from completing an action.
Imagine visitors reaching your checkout page but failing to complete their purchases because of a JavaScript error. With browser error tracking, you can identify the issue, inspect its stack trace, and investigate the affected visitor's session.
It's not a replacement for comprehensive application monitoring or server-side error tracking, but it's a valuable addition to Umami.
For developers and website owners already using Umami, this is another reason to upgrade to 3.5.0.
What do you think? Would having error tracking alongside your website analytics make you less dependent on separate monitoring tools?
#Umami #WebAnalytics #JavaScript #OpenSource