📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
fix: Ignore /comparison pageviews too
Blue Mousefe349b7d373e
diff --git a/web/app/utils/analytics.ts b/web/app/utils/analytics.tsindex 8ca1199d5..7a66b1672 100644--- a/web/app/utils/analytics.ts+++ b/web/app/utils/analytics.ts@@ -76,7 +76,7 @@ const PATHS_REPLACEMENT_MAP = [},]-const BLOG_PAGE_REGEX = /^\/blog\/.+$/+const IGNORED_PAGE_REGEX = /^(\/blog\/.+|\/comparison)$/const checkIgnore = (path: string | undefined | null, ignore: RegExp[]) => {if (!path) {@@ -125,7 +125,7 @@ export const trackViews = () => {ref,} as Swetrix.IPageViewPayload- if (pg && BLOG_PAGE_REGEX.test(pg)) {+ if (pg && IGNORED_PAGE_REGEX.test(pg)) {return false}