📈 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
Add 'Why switch from Google Analytics' section
Blue Mouse664af55f6f8c
diff --git a/web/app/components/Header/index.tsx b/web/app/components/Header/index.tsxindex fd8514fe4..dc3ef16fb 100644--- a/web/app/components/Header/index.tsx+++ b/web/app/components/Header/index.tsx@@ -117,7 +117,9 @@ const SolutionsMenu = () => {const solutions = getSolutions(t)const ctas = getCallsToAction(t)const [open, setOpen] = useState(false)- const closeTimeout = useRef<ReturnType<typeof setTimeout> | undefined>(undefined)+ const closeTimeout = useRef<ReturnType<typeof setTimeout> | undefined>(+ undefined,+ )const handleOpen = () => {clearTimeout(closeTimeout.current)diff --git a/web/app/components/marketing/FeaturesGrid.tsx b/web/app/components/marketing/FeaturesGrid.tsxindex 53607f64e..a225f6238 100644--- a/web/app/components/marketing/FeaturesGrid.tsx+++ b/web/app/components/marketing/FeaturesGrid.tsx@@ -259,7 +259,7 @@ export const FeaturesGrid = () => {<Textas='p'size='sm'- colour='muted'+ colour='secondary'className='mt-1 pl-7 leading-relaxed'>{t(`main.featuresAlt.${key}.desc`)}diff --git a/web/app/components/marketing/WhySwitch.tsx b/web/app/components/marketing/WhySwitch.tsxnew file mode 100644index 000000000..3ede738b3--- /dev/null+++ b/web/app/components/marketing/WhySwitch.tsx@@ -0,0 +1,117 @@+import {+ CookieIcon,+ GithubLogoIcon,+ ArrowRightIcon,+ WindIcon,+ SmileyIcon,+} from '@phosphor-icons/react'+import { useTranslation } from 'react-i18next'+import { Link } from 'react-router'++import { Text } from '~/ui/Text'+import { cn } from '~/utils/generic'+import routes from '~/utils/routes'++const REASONS = [+ {+ key: 'privacy',+ icon: CookieIcon,+ className: 'text-indigo-500',+ },+ {+ key: 'simplicity',+ icon: SmileyIcon,+ className: 'text-teal-500',+ },+ {+ key: 'opensource',+ icon: GithubLogoIcon,+ className: 'text-green-500',+ },+ {+ key: 'lightweight',+ icon: WindIcon,+ className: 'text-cyan-500',+ },+] as const++export const WhySwitch = () => {+ const { t } = useTranslation('common')++ return (+ <section className='mx-auto max-w-7xl px-4 py-14 lg:px-8'>+ <div className='mb-10 max-w-3xl'>+ <Text+ as='h2'+ size='3xl'+ weight='bold'+ tracking='tight'+ className='sm:text-4xl'+ >+ {t('main.whySwitch.heading')}+ </Text>+ </div>++ <div className='grid grid-cols-1 items-start gap-10 lg:grid-cols-5 lg:gap-16'>+ <div className='lg:col-span-2'>+ <div className='space-y-4'>+ {t('main.whySwitch.body')+ .split('\n\n')+ .map((paragraph, index) => (+ <Text+ key={index}+ as='p'+ size='sm'+ colour='secondary'+ className='leading-relaxed'+ >+ {paragraph}+ </Text>+ ))}+ </div>+ <div className='mt-8 flex flex-col items-start gap-4 sm:flex-row sm:items-center'>+ <Link+ to={routes.signup}+ className='inline-flex items-center justify-center rounded-md border-2 border-slate-900 bg-slate-900 px-5 py-3 text-sm font-semibold text-white transition-all hover:bg-transparent hover:text-slate-900 dark:border-slate-50 dark:bg-gray-50 dark:text-slate-900 dark:hover:text-gray-50'+ >+ {t('main.startAXDayFreeTrial', { amount: 14 })}+ <ArrowRightIcon className='ml-2 size-4' aria-hidden='true' />+ </Link>+ <Link+ to='/comparison/google-analytics'+ className='inline-flex items-center text-sm font-medium text-gray-700 transition-colors hover:text-gray-900 dark:text-gray-300 dark:hover:text-white'+ >+ {t('main.whySwitch.compareLink')}+ <ArrowRightIcon className='ml-2 size-4' aria-hidden='true' />+ </Link>+ </div>+ </div>++ <div className='grid grid-cols-1 gap-x-10 gap-y-6 sm:grid-cols-2 lg:col-span-3'>+ {REASONS.map(({ key, icon: Icon, className }) => (+ <div key={key}>+ <div className='flex items-center gap-2'>+ <Icon+ weight='duotone'+ className={cn('size-5 shrink-0', className)}+ aria-hidden+ />+ <Text as='h3' weight='semibold'>+ {t(`main.whySwitch.reasons.${key}.title`)}+ </Text>+ </div>+ <Text+ as='p'+ size='sm'+ colour='secondary'+ className='mt-1 pl-7 leading-relaxed'+ >+ {t(`main.whySwitch.reasons.${key}.desc`)}+ </Text>+ </div>+ ))}+ </div>+ </div>+ </section>+ )+}diff --git a/web/app/routes/_index.tsx b/web/app/routes/_index.tsxindex 5cb9c56e9..e2ef1deb4 100644--- a/web/app/routes/_index.tsx+++ b/web/app/routes/_index.tsx@@ -34,6 +34,7 @@ import { cn } from '~/utils/generic'import routesPath from '~/utils/routes'import { getDescription, getPreviewImage, getTitle } from '~/utils/seo'import { FeaturesGrid } from '~/components/marketing/FeaturesGrid'+import { WhySwitch } from '~/components/marketing/WhySwitch'import { Text } from '~/ui/Text'export const meta: MetaFunction = () => {@@ -469,6 +470,8 @@ export default function Index() {<MarketingPricing metainfo={metainfo} />+ <WhySwitch />+<FAQ /><DitchGoogle />diff --git a/web/public/locales/en.json b/web/public/locales/en.jsonindex b472f9503..d73cb0279 100644--- a/web/public/locales/en.json+++ b/web/public/locales/en.json@@ -632,6 +632,30 @@"api": "Developer API","2fa": "Two-factor authentication"},+ "whySwitch": {+ "heading": "Why people switch from Google Analytics to Swetrix",+ "subheading": "Simple, privacy-respecting analytics with everything you need — without the complexity, cookie banners, or data you can't trust.",+ "body": "Google Analytics has become a bloated, complex tool that takes weeks to learn. Finding basic stats like your top pages or bounce rate now requires navigating through endless confusing menus and building custom reports.\n\nWorse, GA's reliance on cookies means you're legally required to show the annoying cookie consent banners. Every time a user clicks \"Decline\", you lose their data, often resulting in a 20-40% drop in your recorded traffic depending on your audience.\n\nSwetrix solves this. We provide a clean, cookieless dashboard that gives you accurate, real-time insights instantly. You don't need cookie banners, you own 100% of your data, and our lightweight script won't slow down your website.",+ "compareLink": "Swetrix vs Google Analytics",+ "reasons": {+ "privacy": {+ "title": "Cookie-less tracking",+ "desc": "Google Analytics requires cookie consent banners and collects personal data. Swetrix is fully cookieless and privacy respectful - no cookie consent banners needed."+ },+ "simplicity": {+ "title": "Features you will actually use",+ "desc": "Swetrix provides traffic analytics, session analysis, funnels, profiles, A/B tests - features that are actually useful in a clean & minimalistic dashboard."+ },+ "opensource": {+ "title": "Open source & self-hostable",+ "desc": "Google Analytics is a black box. Swetrix is fully open source & transparent - giving you an ability to audit the code or self-host on your own infrastructure free of charge."+ },+ "lightweight": {+ "title": "Lightweight, not a liability",+ "desc": "GA's tracking script weighs 75KB+ and slows your site down. Swetrix's tracker is under 5KB - your visitors won't even notice it."+ }+ }+ },"freeToTry": "Free to try","easyToUse": "Easy to use","privacyFirst": "Privacy-first",