📈 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
Remove referral page remnants
Blue Mouse56417dc5ed6d
diff --git a/web/app/App.tsx b/web/app/App.tsxindex 535a2f635..78fa7bfe7 100644--- a/web/app/App.tsx+++ b/web/app/App.tsx@@ -15,7 +15,6 @@ const App = () => {const { pathname } = useLocation()const { theme } = useTheme()- const isReferralPage = _startsWith(pathname, '/ref/')const isOnboardingPage = pathname === routesPath.onboardingconst isProjectViewPage =_startsWith(pathname, '/projects/') &&@@ -39,7 +38,6 @@ const App = () => {return (<>{!_includes(routesWithOutHeader, pathname) &&- !isReferralPage &&!isProjectViewPage &&!isOnboardingPage ? (<Header />@@ -51,9 +49,7 @@ const App = () => {duration: 5000,}}/>- {!isReferralPage && !isProjectViewPage && !isOnboardingPage ? (- <Footer />- ) : null}+ {!isProjectViewPage && !isOnboardingPage ? <Footer /> : null}</>)}diff --git a/web/app/routes/[robots.txt].tsx b/web/app/routes/[robots.txt].tsxindex c304f6908..c6cc2d5a5 100644--- a/web/app/routes/[robots.txt].tsx+++ b/web/app/routes/[robots.txt].tsx@@ -3,8 +3,6 @@ import { isSelfhosted } from '~/lib/constants'const PRODUCTION_ROBOTS = `Sitemap: https://swetrix.com/sitemap.xmlUser-agent: *-Disallow: /ref-Disallow: /ref/*Disallow: /projects/*Disallow: /password-reset/*Disallow: /verify/*diff --git a/web/app/utils/analytics.ts b/web/app/utils/analytics.tsindex 4bc35982f..8ca1199d5 100644--- a/web/app/utils/analytics.ts+++ b/web/app/utils/analytics.ts@@ -50,10 +50,6 @@ const PATHS_REPLACEMENT_MAP = [regex: /^\/share/i,replacement: '/share/[token]',},- {- regex: /^\/ref/i,- replacement: '/ref/[id]',- },{regex: /\/projects\/([^/]+)\/alerts\/create/i,replacement: '/projects/[id]/alerts/create',diff --git a/web/app/utils/routes.ts b/web/app/utils/routes.tsindex e98f13fd4..5a61b4c49 100644--- a/web/app/utils/routes.ts+++ b/web/app/utils/routes.ts@@ -31,7 +31,6 @@ const routes = Object.freeze({socialised: '/socialised',gsc_connected: '/gsc-connected',open: '/open',- ref: '/ref/:id',blog: '/blog',imprint: '/imprint',forMarketers: '/for-marketers',