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!

Don't track /demo pages

Blue Mousecf63275e24af
diff --git a/web/app/utils/analytics.ts b/web/app/utils/analytics.ts
index 38a235400..f19700fea 100644
--- a/web/app/utils/analytics.ts
+++ b/web/app/utils/analytics.ts
@@ -145,6 +145,10 @@ export const trackViews = () => {
ref,
} as IPageViewPayload
+ if (pg?.includes('/demo')) {
+ return false
+ }
+
result.pg = getNewPath(pg)
if (checkIgnore(ref, REFS_TO_IGNORE)) {