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!

updated analytics regex

Blue Mousea752a354bfe2
diff --git a/app/utils/analytics.ts b/app/utils/analytics.ts
index d37267127..dfda88e1e 100644
--- a/app/utils/analytics.ts
+++ b/app/utils/analytics.ts
@@ -8,7 +8,7 @@ Swetrix.init(SWETRIX_PID)
const trackViews = () => {
if (!isSelfhosted) {
Swetrix.trackViews({
- ignore: [/^\/projects/i, /^\/verify/i, /^\/password-reset/i, /^\/change-email/i, /^\/share/i, /^\/captchas/i],
+ ignore: [/^\/projects\/(?!new$)[^/]+$/i, /^\/verify/i, /^\/password-reset/i, /^\/change-email/i, /^\/share/i, /^\/captchas/i],
heartbeatOnBackground: true,
})
}