Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

errors tracking callback fix

Blue Mousea92813f6a34c
diff --git a/app/utils/analytics.ts b/app/utils/analytics.ts
index 112f27c85..7f27d1e16 100644
--- a/app/utils/analytics.ts
+++ b/app/utils/analytics.ts
@@ -111,13 +111,7 @@ const trackViews = () => {
const trackErrors = () => {
if (!isSelfhosted) {
Swetrix.trackErrors({
- callback: ({ message }) => {
- if (_includes(message, 'Minified React error')) {
- return false
- }
-
- return true
- },
+ callback: ({ message }) => !_includes(message, 'Minified React error'),
})
}
}
diff --git a/package.json b/package.json
index c25f398ab..ba581292e 100644
--- a/package.json
+++ b/package.json
@@ -69,7 +69,7 @@
"remix-sitemap": "^3.2.0",
"remix-utils": "^7.6.0",
"spacetime": "^7.6.0",
- "swetrix": "^3.1.0",
+ "swetrix": "^3.1.1",
"timezone-soft": "^1.5.2",
"ts-jest": "^29.1.2"
},