📈 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
don't track dev analytics
Blue Mouseb57ca50e699d
diff --git a/web/app/utils/analytics.ts b/web/app/utils/analytics.tsindex c8b0e67db..d68b9f4b6 100644--- a/web/app/utils/analytics.ts+++ b/web/app/utils/analytics.ts@@ -114,7 +114,7 @@ Swetrix.init(SWETRIX_PID, {const BLOG_PAGE_REGEX = /^\/blog\/.+$/export const trackViews = () => {- if (isSelfhosted || !isBrowser || isIframe) {+ if (isSelfhosted || !isBrowser || isIframe || isDevelopment) {return}@@ -155,7 +155,7 @@ export const trackPageview = (options: Swetrix.IPageviewOptions) => {}export const trackErrors = () => {- if (isSelfhosted || !isBrowser) {+ if (isSelfhosted || !isBrowser || isDevelopment) {return}@@ -181,7 +181,7 @@ export const trackErrors = () => {}export const trackError = (payload: Swetrix.IErrorEventPayload) => {- if (isSelfhosted || !isBrowser) {+ if (isSelfhosted || !isBrowser || isDevelopment) {return}@@ -192,7 +192,7 @@ export const trackCustom = (ev: string,meta?: Swetrix.TrackEventOptions['meta'],) => {- if (isSelfhosted || !isBrowser) {+ if (isSelfhosted || !isBrowser || isDevelopment) {return}