📈 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
Swetrix for Agencies
Blue Mousee5117d07a04f
diff --git a/web/app/App.tsx b/web/app/App.tsxindex b5b6d0d11..a1af47d32 100644--- a/web/app/App.tsx+++ b/web/app/App.tsx@@ -42,6 +42,7 @@ const App = () => {routesPath.forSmallBusinesses,routesPath.captchaLanding,routesPath.gaAlternative,+ routesPath.agencies,]return (diff --git a/web/app/components/Footer/index.tsx b/web/app/components/Footer/index.tsxindex d2b280843..e09005ee0 100644--- a/web/app/components/Footer/index.tsx+++ b/web/app/components/Footer/index.tsx@@ -30,6 +30,8 @@ import {MoneyIcon,QrCodeIcon,PlusCircleIcon,+ BuildingsIcon,+ ArrowsLeftRightIcon,} from '@phosphor-icons/react'import _map from 'lodash/map'import React, { memo, type FC } from 'react'@@ -110,6 +112,24 @@ const products: NavItem[] = [icon: ShieldCheckIcon,iconColor: 'text-emerald-400',},+ {+ key: 'header.solutions.gaAlternative.title',+ href: isSelfhosted+ ? `https://swetrix.com${routesPath.gaAlternative}`+ : routesPath.gaAlternative,+ internal: !isSelfhosted,+ icon: ArrowsLeftRightIcon,+ iconColor: 'text-amber-400',+ },+ {+ key: 'header.solutions.agencies.title',+ href: isSelfhosted+ ? `https://swetrix.com${routesPath.agencies}`+ : routesPath.agencies,+ internal: !isSelfhosted,+ icon: BuildingsIcon,+ iconColor: 'text-sky-400',+ },]const freeTools: NavItem[] = [diff --git a/web/app/components/Header/index.tsx b/web/app/components/Header/index.tsxindex 3f42aeffc..77ec9dd5c 100644--- a/web/app/components/Header/index.tsx+++ b/web/app/components/Header/index.tsx@@ -20,6 +20,7 @@ import {WarningIcon,ShieldCheckIcon,ArrowRightIcon,+ ArrowsLeftRightIcon,ListIcon,XIcon,CaretDownIcon,@@ -100,6 +101,23 @@ const getSolutions = (t: typeof i18nextT) => [},]+const getMoreSolutions = (t: typeof i18nextT) => [+ {+ name: t('header.solutions.gaAlternative.title'),+ description: t('header.solutions.gaAlternative.desc'),+ link: routes.gaAlternative,+ icon: ArrowsLeftRightIcon,+ className: 'text-amber-500 dark:text-amber-400',+ },+ {+ name: t('header.solutions.agencies.title'),+ description: t('header.solutions.agencies.desc'),+ link: routes.agencies,+ icon: BuildingsIcon,+ className: 'text-sky-500 dark:text-sky-400',+ },+]+const getCallsToAction = (t: typeof i18nextT) => [{name: t('header.watchDemo'),@@ -115,9 +133,60 @@ const getCallsToAction = (t: typeof i18nextT) => [},]+interface SolutionItem {+ name: string+ description: string+ link: string+ icon: typeof ChartBarIcon+ className: string+}++const SolutionTile = ({ item }: { item: SolutionItem }) => (+ <div className='group relative flex gap-x-2 rounded-lg p-2 transition-colors hover:bg-gray-400/20 dark:hover:bg-slate-700/50'>+ <item.icon+ className={cn(+ 'mt-1 h-5 w-5 text-gray-600 dark:text-gray-300',+ item.className,+ )}+ aria-hidden='true'+ weight='duotone'+ />+ <div>+ {_startsWith(item.link, '/') ? (+ <Link+ to={item.link}+ className='text-sm font-semibold text-gray-900 dark:text-gray-50'+ >+ {item.name}+ <span className='absolute inset-0' />+ </Link>+ ) : (+ <a+ href={item.link}+ target='_blank'+ rel='noopener noreferrer'+ className='text-sm font-semibold text-gray-900 dark:text-gray-50'+ >+ {item.name}+ <span className='absolute inset-0' />+ </a>+ )}++ <Text+ as='p'+ size='xs'+ className='mt-1 text-gray-600 dark:text-neutral-100'+ >+ {item.description}+ </Text>+ </div>+ </div>+)+const SolutionsMenu = ({ inverted }: { inverted?: boolean }) => {const { t } = useTranslation('common')const solutions = getSolutions(t)+ const moreSolutions = getMoreSolutions(t)const ctas = getCallsToAction(t)const [open, setOpen] = useState(false)const closeTimeout = useRef<ReturnType<typeof setTimeout> | undefined>(@@ -176,48 +245,12 @@ const SolutionsMenu = ({ inverted }: { inverted?: boolean }) => {<div className='flex w-[650px] flex-col divide-y divide-gray-300/80 rounded-lg border border-gray-300/80 bg-gray-50/50 p-1.5 dark:divide-slate-700/60 dark:border-slate-700/60 dark:bg-slate-950/50'><div className='grid w-full grid-cols-2 gap-1 p-4'>{_map(solutions, (item) => (- <div- key={item.name}- className='group relative flex gap-x-2 rounded-lg p-2 transition-colors hover:bg-gray-400/20 dark:hover:bg-slate-700/50'- >- <item.icon- className={cn(- 'mt-1 h-5 w-5 text-gray-600 dark:text-gray-300',- item.className,- )}- aria-hidden='true'- weight='duotone'- />- <div>- {_startsWith(item.link, '/') ? (- <Link- to={item.link}- className='text-sm font-semibold text-gray-900 dark:text-gray-50'- >- {item.name}- <span className='absolute inset-0' />- </Link>- ) : (- <a- href={item.link}- target='_blank'- rel='noopener noreferrer'- className='text-sm font-semibold text-gray-900 dark:text-gray-50'- >- {item.name}- <span className='absolute inset-0' />- </a>- )}-- <Text- as='p'- size='xs'- className='mt-1 text-gray-600 dark:text-neutral-100'- >- {item.description}- </Text>- </div>- </div>+ <SolutionTile key={item.name} item={item} />+ ))}+ </div>+ <div className='grid w-full grid-cols-2 gap-1 p-4'>+ {_map(moreSolutions, (item) => (+ <SolutionTile key={item.name} item={item} />))}</div><div className='grid grid-cols-2 gap-1 px-4 py-2'>@@ -746,6 +779,7 @@ const Header = ({ refPage, transparent, inverted }: HeaderProps) => {const { theme, setTheme } = useTheme()const solutions = getSolutions(t)+ const moreSolutions = getMoreSolutions(t)const logoutHandler = () => {setMobileMenuOpen(false)@@ -923,6 +957,50 @@ const Header = ({ refPage, transparent, inverted }: HeaderProps) => {</div></DisclosureButton>))}+ <div className='mx-2 my-1 border-t border-gray-300/80 dark:border-slate-700/60' />+ {_map(moreSolutions, (item) => (+ <DisclosureButton+ key={item.name}+ as='div'+ className='group relative flex gap-x-2 rounded-lg p-2 transition-colors hover:bg-gray-400/20 dark:hover:bg-slate-700/50'+ >+ <item.icon+ className='mt-1 h-5 w-5 text-gray-600 dark:text-gray-300'+ aria-hidden='true'+ />+ <div>+ {_startsWith(item.link, '/') ? (+ <Link+ to={item.link}+ onClick={() => setMobileMenuOpen(false)}+ className='text-sm font-semibold text-gray-900 dark:text-gray-50'+ >+ {item.name}+ <span className='absolute inset-0' />+ </Link>+ ) : (+ <a+ href={item.link}+ onClick={() => setMobileMenuOpen(false)}+ target='_blank'+ rel='noopener noreferrer'+ className='text-sm font-semibold text-gray-900 dark:text-gray-50'+ >+ {item.name}+ <span className='absolute inset-0' />+ </a>+ )}++ <Text+ as='p'+ size='xs'+ className='mt-1 text-gray-600 dark:text-neutral-100'+ >+ {item.description}+ </Text>+ </div>+ </DisclosureButton>+ ))}</DisclosurePanel></Transition></>diff --git a/web/app/components/marketing/DitchGoogle.tsx b/web/app/components/marketing/DitchGoogle.tsxindex eebe68eb2..ed59cbda0 100644--- a/web/app/components/marketing/DitchGoogle.tsx+++ b/web/app/components/marketing/DitchGoogle.tsx@@ -55,7 +55,7 @@ export const DitchGoogle = () => {<div className='mt-9 flex w-full flex-col justify-center gap-3 sm:w-auto sm:flex-row sm:items-center'><Linkto={routes.signup}- className='inline-flex h-12 items-center justify-center rounded-md bg-white px-5 text-slate-950 ring-1 ring-white/30 transition-colors hover:bg-gray-100'+ className='inline-flex h-12 items-center justify-center rounded-md bg-white px-5 text-slate-950 ring-1 ring-white/30 transition-[transform,background-color] duration-150 ease-out-quint hover:bg-gray-100 active:scale-[0.97]'aria-label={t('titles.signup')}><span className='text-center text-base font-semibold'>diff --git a/web/app/components/marketing/FAQ.tsx b/web/app/components/marketing/FAQ.tsxindex 4cb8ca561..b05b7ce44 100644--- a/web/app/components/marketing/FAQ.tsx+++ b/web/app/components/marketing/FAQ.tsx@@ -11,9 +11,13 @@ import routesPath from '~/utils/routes'interface FAQProps {includeGAQuestions?: boolean+ includeAgencyQuestions?: boolean}-const FAQ = ({ includeGAQuestions = false }: FAQProps) => {+const FAQ = ({+ includeGAQuestions = false,+ includeAgencyQuestions = false,+}: FAQProps) => {const { t } = useTranslation('common')const onLinkClick = (e: React.MouseEvent<HTMLAnchorElement>) => {@@ -61,8 +65,26 @@ const FAQ = ({ includeGAQuestions = false }: FAQProps) => {return [...gaQuestions, ...questions]}+ if (includeAgencyQuestions) {+ const agencyItems = t('main.faq.agencyItems', {+ returnObjects: true,+ }) as {+ q: string+ a: string+ }[]++ const agencyQuestions = Array.isArray(agencyItems)+ ? agencyItems.map((item, idx) => ({+ ...item,+ i18nKey: `main.faq.agencyItems.${idx}`,+ }))+ : []++ return [...agencyQuestions, ...questions]+ }+return questions- }, [t, includeGAQuestions])+ }, [t, includeGAQuestions, includeAgencyQuestions])const structuredData = {'@context': 'https://schema.org',diff --git a/web/app/routes/agencies.tsx b/web/app/routes/agencies.tsxnew file mode 100644index 000000000..e906179ec--- /dev/null+++ b/web/app/routes/agencies.tsx@@ -0,0 +1,671 @@+import NumberFlow from '@number-flow/react'+import {+ ArrowRightIcon,+ BuildingsIcon,+ CodeIcon,+ CookieIcon,+ EnvelopeSimpleIcon,+ GlobeIcon,+ LockKeyIcon,+ ReceiptIcon,+ ShieldCheckIcon,+ StarIcon,+ UsersThreeIcon,+} from '@phosphor-icons/react'+import _map from 'lodash/map'+import { motion, useReducedMotion, useScroll, useTransform } from 'motion/react'+import { useEffect, useState } from 'react'+import { useTranslation, Trans } from 'react-i18next'+import type { LoaderFunctionArgs, MetaFunction } from 'react-router'+import { redirect, useLoaderData } from 'react-router'+import type { SitemapFunction } from 'remix-sitemap'+import { ClientOnly } from 'remix-utils/client-only'++import { getGeneralStats, serverFetch } from '~/api/api.server'+import Header from '~/components/Header'+import { DitchGoogle } from '~/components/marketing/DitchGoogle'+import FAQ from '~/components/marketing/FAQ'+import { FeaturesGrid } from '~/components/marketing/FeaturesGrid'+import { LogoCloud } from '~/components/marketing/LogoCloud'+import MarketingPricing from '~/components/pricing/MarketingPricing'+import {+ FLOW_TIMING,+ FLOW_VALUE_CLASS,+ useFlowValue,+} from '~/hooks/useFlowValue'+import useBreakpoint from '~/hooks/useBreakpoint'+import {+ LIVE_DEMO_URL,+ TRIAL_DAYS,+ isDisableMarketingPages,+ isSelfhosted,+ localisePath,+} from '~/lib/constants'+import { DEFAULT_METAINFO, Metainfo } from '~/lib/models/Metainfo'+import { useTheme } from '~/providers/ThemeProvider'+import Button from '~/ui/Button'+import { Link } from '~/ui/Link'+import { Text } from '~/ui/Text'+import { cn } from '~/utils/generic'+import routes from '~/utils/routes'+import { getDescription, getPreviewImage, getTitle } from '~/utils/seo'++import { FeedbackDual } from './_index'++export const meta: MetaFunction = () => {+ // eslint-disable-next-line react-hooks/rules-of-hooks+ const { t } = useTranslation('common')++ return [+ ...getTitle(t('titles.agencies')),+ ...getDescription(t('description.default')),+ ...getPreviewImage(),+ ]+}++export const sitemap: SitemapFunction = () => ({+ priority: 0.9,+ exclude: isSelfhosted || isDisableMarketingPages,+})++export async function loader({ request }: LoaderFunctionArgs) {+ if (isSelfhosted || isDisableMarketingPages) {+ return redirect('/login', 302)+ }++ const [metainfoResult, stats] = await Promise.all([+ serverFetch<Metainfo>(request, 'user/metainfo', { skipAuth: true }),+ getGeneralStats(request),+ ])++ return {+ metainfo: metainfoResult.data ?? DEFAULT_METAINFO,+ stats,+ }+}++const REVIEWERS = [+ { name: 'Luke', image: '/assets/small-testimonials/luke.jpg' },+ { name: 'Alex', image: '/assets/small-testimonials/alex.jpg' },+ { name: 'Artur', image: '/assets/small-testimonials/artur.jpg' },+ { name: 'Alper', image: '/assets/small-testimonials/alper.jpg' },+ { name: 'Andrii', image: '/assets/small-testimonials/andrii.jpg' },+]++const TrialsFlow = ({ value, locale }: { value: number; locale: string }) => {+ const flowValue = useFlowValue(value)++ return (+ <NumberFlow+ className={FLOW_VALUE_CLASS}+ {...FLOW_TIMING}+ value={flowValue}+ locales={locale}+ willChange+ />+ )+}++/**+ * Wraps the trials count interpolated by <Trans>. The server (and no-JS+ * visitors) get the plain interpolated text; after hydration it swaps to a+ * NumberFlow that rolls up from zero. Content is never hidden without JS.+ */+const TrialsHighlight = ({+ value,+ locale,+ children,+}: {+ value?: number+ locale: string+ children?: React.ReactNode+}) => {+ const [mounted, setMounted] = useState(false)++ useEffect(() => {+ setMounted(true)+ }, [])++ return (+ <span className='font-semibold text-gray-900 dark:text-gray-50'>+ {mounted && value != null ? (+ <TrialsFlow value={value} locale={locale} />+ ) : (+ children+ )}+ </span>+ )+}++const Testimonials = ({ className }: { className?: string }) => {+ const {+ t,+ i18n: { language },+ } = useTranslation('common')+ const { stats } = useLoaderData<typeof loader>()++ return (+ <div+ className={cn(+ 'flex flex-col items-center justify-center gap-3 md:flex-row',+ className,+ )}+ >+ <div className='flex -space-x-5 overflow-hidden'>+ {_map(REVIEWERS, ({ name, image }) => (+ <div+ key={`${name}${image}`}+ className='relative inline-flex size-12 overflow-hidden rounded-full border-4 border-gray-50 dark:border-slate-800/90'+ >+ <img+ alt={name}+ width={48}+ height={48}+ loading='lazy'+ className='object-cover'+ style={{ color: 'transparent' }}+ src={image}+ />+ </div>+ ))}+ </div>+ <div className='mt-1 flex flex-col items-center justify-center gap-1 md:items-start'>+ <div className='relative inline-flex'>+ <StarIcon className='size-5 text-yellow-500' weight='fill' />+ <StarIcon className='size-5 text-yellow-500' weight='fill' />+ <StarIcon className='size-5 text-yellow-500' weight='fill' />+ <StarIcon className='size-5 text-yellow-500' weight='fill' />+ <StarIcon className='size-5 text-yellow-500' weight='fill' />+ </div>+ <div className='text-base text-gray-900/70 dark:text-gray-200'>+ <Trans+ values={{+ amount:+ stats?.trials != null+ ? stats.trials.toLocaleString(language)+ : '> 1000',+ }}+ t={t}+ i18nKey='main.understandTheirUsers'+ >+ <TrialsHighlight value={stats?.trials} locale={language} />+ </Trans>+ </div>+ </div>+ </div>+ )+}++const LiveDemoPreview = () => {+ const {+ i18n: { language },+ } = useTranslation('common')+ const { theme } = useTheme()+ const isUpToLg = !useBreakpoint('lg')++ if (isUpToLg) {+ return (+ <div className='relative z-20 mx-auto mt-10 overflow-hidden rounded-2xl bg-white/80 p-1.5 shadow-2xl ring-1 shadow-slate-950/20 ring-white/40 backdrop-blur-md dark:bg-slate-950/80 dark:ring-white/10'>+ <img+ src={+ theme === 'dark'+ ? '/assets/screenshot_dark.png'+ : '/assets/screenshot_light.png'+ }+ className='relative h-auto w-full rounded-xl'+ width={2328}+ height={1666}+ alt='Swetrix Analytics dashboard'+ />+ </div>+ )+ }++ const localisedDemoPath = localisePath('/demo', language)++ return (+ <div+ className='relative z-20 mx-auto mt-12 w-full max-w-[1480px] overflow-hidden rounded-2xl bg-white/90 p-2 shadow-2xl ring-1 shadow-slate-950/25 ring-white/40 backdrop-blur-xl dark:bg-slate-950/90 dark:ring-white/10'+ style={{+ transform: 'translateZ(0)',+ WebkitTransform: 'translateZ(0)',+ willChange: 'transform',+ contain: 'paint',+ }}+ >+ <div className='relative h-[560px] overflow-hidden rounded-xl bg-slate-950 lg:h-[620px] xl:h-[680px]'>+ <iframe+ src={`https://swetrix.com${localisedDemoPath}?tab=traffic&theme=${theme}&embedded=true`}+ className='size-full rounded-xl'+ title='Swetrix Analytics Live Demo'+ loading='eager'+ />+ </div>+ </div>+ )+}++const HeroParallaxBackground = () => {+ const reduceMotion = useReducedMotion()+ const { scrollY } = useScroll()+ const scale = useTransform(scrollY, [0, 900], [1, 1.08])++ return (+ <motion.div+ className='absolute inset-0 transform-gpu'+ style={+ reduceMotion ? undefined : { scale, transformOrigin: 'center 35%' }+ }+ >+ <picture className='absolute inset-0 block'>+ <source srcSet='/assets/hero-background.avif' type='image/avif' />+ <img+ alt=''+ className='size-full object-cover object-center opacity-95 saturate-125'+ src='/assets/hero-background.webp'+ />+ </picture>+ </motion.div>+ )+}++const HERO_TRUST = [+ { key: 'oneWorkspace', Icon: BuildingsIcon },+ { key: 'whiteLabel', Icon: GlobeIcon },+ { key: 'gdpr', Icon: ShieldCheckIcon },+] as const++const Hero = () => {+ const { t } = useTranslation('common')++ return (+ <div className='relative isolate overflow-hidden bg-gray-50 pt-2 dark:bg-slate-950'>+ <div className='relative mx-2 overflow-hidden rounded-t-4xl bg-slate-950 shadow-2xl ring-1 shadow-slate-950/20 ring-black/5 dark:ring-white/10'>+ <div aria-hidden className='pointer-events-none absolute inset-0'>+ <HeroParallaxBackground />+ <div className='absolute inset-0 bg-slate-950/55' />+ <div className='absolute inset-0 bg-radial-[at_50%_0%] from-indigo-300/30 via-slate-950/10 to-slate-950/80' />+ <div className='absolute inset-x-0 bottom-0 h-1/3 bg-linear-to-b from-transparent to-slate-950' />+ </div>+ <Header transparent inverted />+ <section className='relative z-10 mx-auto flex max-w-[1500px] flex-col items-center px-4 pt-14 pb-6 sm:px-6 sm:pt-16 lg:px-8 lg:pt-20'>+ <Text+ as='h1'+ weight='semibold'+ className='mx-auto max-w-5xl text-center text-5xl leading-[0.98] text-balance text-white sm:text-6xl lg:text-7xl'+ >+ {t('agencies.hero.title')}+ </Text>+ <Text+ as='p'+ size='lg'+ className='mx-auto mt-5 max-w-2xl text-center leading-8 text-gray-50'+ >+ {t('agencies.hero.subtitle')}+ </Text>++ <div className='mt-8 flex w-full flex-col items-stretch justify-center gap-3 sm:w-auto sm:flex-row sm:items-center'>+ <Link+ to={routes.signup}+ className='inline-flex h-12 items-center justify-center rounded-md bg-white px-5 text-slate-950 shadow-lg ring-1 shadow-slate-950/20 ring-white/30 transition-[transform,background-color] duration-150 ease-out-quint hover:bg-gray-100 active:scale-[0.97]'+ aria-label={t('agencies.hero.cta', { days: TRIAL_DAYS })}+ >+ <span className='text-center text-base font-semibold'>+ {t('agencies.hero.cta', { days: TRIAL_DAYS })}+ </span>+ <ArrowRightIcon className='mt-px ml-1 h-4 w-5' />+ </Link>+ <Button+ to={LIVE_DEMO_URL}+ linkProps={{+ target: '_blank',+ rel: 'noopener noreferrer',+ }}+ variant='secondary'+ size='xl'+ className='flex h-12 items-center justify-center border-white/25 bg-white/10 px-5 text-center text-base font-semibold text-white shadow-none ring-white/25 backdrop-blur-md hover:bg-white/20 dark:border-white/25 dark:bg-white/10 dark:text-white dark:hover:bg-white/20'+ aria-label={`${t('agencies.hero.viewDemo')} (opens in a new tab)`}+ >+ {t('agencies.hero.viewDemo')}+ </Button>+ </div>++ <div className='mt-8 flex max-w-3xl flex-wrap justify-center gap-x-12 gap-y-3 text-gray-50'>+ {HERO_TRUST.map(({ key, Icon }) => (+ <div+ key={key}+ className='flex items-center gap-2 text-sm whitespace-nowrap'+ >+ <Icon className='size-5 shrink-0' weight='duotone' />+ <span>{t(`agencies.hero.trust.${key}`)}</span>+ </div>+ ))}+ </div>++ <Testimonials className='dark mt-8' />++ <div className='w-full'>+ <ClientOnly+ fallback={+ <div className='mx-auto mt-12 h-[560px] w-full max-w-[1480px] rounded-2xl bg-white/10 ring-1 ring-white/20 backdrop-blur-xl lg:h-[620px] xl:h-[680px]' />+ }+ >+ {() => <LiveDemoPreview />}+ </ClientOnly>+ </div>+ </section>+ </div>+ </div>+ )+}++const AgencyWorkspace = () => {+ const { t } = useTranslation('common')+ return (+ <section className='relative mx-auto max-w-7xl px-4 py-20 lg:px-8 lg:py-28'>+ <div className='grid grid-cols-1 gap-12 lg:grid-cols-12 lg:gap-16'>+ {/* Left column - headline and primary benefit */}+ <div className='lg:col-span-5'>+ <Text+ as='p'+ size='sm'+ weight='medium'+ tracking='wide'+ className='text-indigo-600 uppercase dark:text-indigo-400'+ >+ {t('agencies.workspace.label')}+ </Text>+ <Text+ as='h2'+ size='3xl'+ weight='bold'+ tracking='tight'+ className='mt-3 leading-snug sm:text-4xl sm:leading-snug'+ >+ <Trans+ i18nKey='agencies.workspace.title'+ components={{+ 1: (+ <span className='rounded-md bg-slate-900 px-2 py-0.5 text-white dark:bg-white dark:text-slate-900' />+ ),+ }}+ />+ </Text>+ <Text+ as='p'+ size='base'+ className='mt-5 leading-relaxed text-slate-600 dark:text-slate-300'+ >+ {t('agencies.workspace.subtitle')}+ </Text>++ {/* Primary benefit - visually distinct */}+ <div className='mt-10 border-l-2 border-indigo-500 pl-6'>+ <div className='flex items-center gap-2'>+ <BuildingsIcon+ className='size-5 text-indigo-600 dark:text-indigo-400'+ weight='duotone'+ />+ <Text as='h3' size='lg' weight='semibold'>+ {t('agencies.workspace.primary.title')}+ </Text>+ </div>+ <Text+ as='p'+ size='sm'+ className='mt-2 leading-relaxed text-slate-600 dark:text-slate-400'+ >+ {t('agencies.workspace.primary.description')}+ </Text>+ </div>+ </div>++ {/* Right column - secondary benefits */}+ <div className='lg:col-span-7 lg:pt-16'>+ <div className='space-y-10'>+ <div>+ <Text+ as='h3'+ size='lg'+ weight='semibold'+ className='flex items-center gap-2.5'+ >+ <UsersThreeIcon+ className='size-5 text-indigo-600 dark:text-indigo-400'+ weight='duotone'+ />+ {t('agencies.workspace.roles.title')}+ </Text>+ <Text+ as='p'+ size='sm'+ className='mt-2 leading-relaxed text-slate-600 lg:pl-7 dark:text-slate-400'+ >+ {t('agencies.workspace.roles.description')}+ </Text>+ </div>++ <div className='lg:pl-8'>+ <Text+ as='h3'+ size='lg'+ weight='semibold'+ className='flex items-center gap-2.5'+ >+ <ReceiptIcon+ className='size-5 text-emerald-500 dark:text-emerald-400'+ weight='duotone'+ />+ {t('agencies.workspace.billing.title')}+ </Text>+ <Text+ as='p'+ size='sm'+ className='mt-2 leading-relaxed text-slate-600 lg:pl-7 dark:text-slate-400'+ >+ {t('agencies.workspace.billing.description')}+ </Text>+ </div>+ </div>++ {/* Concrete plan facts, not vanity numbers */}+ <div className='mt-12 flex flex-wrap items-center gap-x-3 gap-y-1 border-t border-slate-200 pt-6 text-sm text-slate-600 dark:border-white/10 dark:text-slate-400'>+ <span>{t('agencies.workspace.stats.sites')}</span>+ <span aria-hidden className='text-slate-300 dark:text-slate-600'>+ ·+ </span>+ <span>{t('agencies.workspace.stats.members')}</span>+ <span aria-hidden className='text-slate-300 dark:text-slate-600'>+ ·+ </span>+ <span>{t('agencies.workspace.stats.invoice')}</span>+ </div>+ </div>+ </div>+ </section>+ )+}++const WHITE_LABEL_POINTS = [+ { key: 'branded', Icon: GlobeIcon, accent: true },+ { key: 'embed', Icon: CodeIcon, accent: false },+ { key: 'reports', Icon: EnvelopeSimpleIcon, accent: false },+] as const++const WhiteLabelReporting = () => {+ const { t } = useTranslation('common')+ return (+ <section className='relative mx-auto max-w-7xl px-4 py-20 lg:px-8 lg:py-28'>+ <div className='grid grid-cols-1 gap-12 lg:grid-cols-12 lg:gap-16'>+ <div className='lg:col-span-5'>+ <Text+ as='p'+ size='sm'+ weight='medium'+ tracking='wide'+ className='text-indigo-600 uppercase dark:text-indigo-400'+ >+ {t('agencies.whiteLabel.label')}+ </Text>+ <Text+ as='h2'+ size='3xl'+ weight='bold'+ tracking='tight'+ className='mt-3 sm:text-4xl'+ >+ {t('agencies.whiteLabel.title')}+ </Text>+ <Text+ as='p'+ size='base'+ className='mt-5 max-w-xl leading-relaxed text-slate-600 dark:text-slate-300'+ >+ {t('agencies.whiteLabel.subtitle')}+ </Text>++ <div className='mt-8'>+ <Link+ to={routes.signup}+ className='inline-flex h-12 items-center justify-center rounded-md border-2 border-slate-900 bg-slate-900 px-5 text-white transition-[transform,background-color,color] duration-150 ease-out-quint hover:bg-transparent hover:text-slate-900 active:scale-[0.97] dark:border-slate-50 dark:bg-gray-50 dark:text-slate-900 dark:hover:bg-transparent dark:hover:text-gray-50'+ aria-label={t('agencies.whiteLabel.cta')}+ >+ <span className='text-center text-base font-semibold'>+ {t('agencies.whiteLabel.cta')}+ </span>+ <ArrowRightIcon className='mt-px ml-1 h-4 w-5' />+ </Link>+ </div>+ </div>++ <div className='lg:col-span-7 lg:pt-2'>+ <div className='space-y-8'>+ {WHITE_LABEL_POINTS.map(({ key, Icon, accent }) => (+ <div+ key={key}+ className={cn(+ 'border-l-2 pl-6',+ accent+ ? 'border-indigo-500'+ : 'border-slate-200 dark:border-slate-700',+ )}+ >+ <Text+ as='h3'+ size='base'+ weight='semibold'+ className='flex items-center gap-2.5'+ >+ <Icon+ className={cn(+ 'size-5',+ accent+ ? 'text-indigo-600 dark:text-indigo-400'+ : 'text-slate-500 dark:text-slate-400',+ )}+ weight='duotone'+ />+ {t(`agencies.whiteLabel.points.${key}.title`)}+ </Text>+ <Text+ as='p'+ size='sm'+ className='mt-1.5 leading-relaxed text-slate-600 lg:pl-7 dark:text-slate-400'+ >+ {t(`agencies.whiteLabel.points.${key}.description`)}+ </Text>+ </div>+ ))}+ </div>+ </div>+ </div>+ </section>+ )+}++const COMPLIANCE_POINTS = [+ { key: 'gdpr', Icon: ShieldCheckIcon, className: 'text-indigo-500' },+ { key: 'cookieless', Icon: CookieIcon, className: 'text-emerald-500' },+ { key: 'residency', Icon: LockKeyIcon, className: 'text-amber-500' },+] as const++const Compliance = () => {+ const { t } = useTranslation('common')+ return (+ <section className='relative mx-auto max-w-7xl px-4 py-16 sm:py-20 lg:px-8'>+ <div className='mx-auto max-w-3xl text-center'>+ <Text+ as='p'+ size='sm'+ weight='medium'+ tracking='wide'+ className='text-indigo-600 uppercase dark:text-indigo-400'+ >+ {t('agencies.compliance.label')}+ </Text>+ <Text+ as='h2'+ size='3xl'+ weight='bold'+ tracking='tight'+ className='mt-3 sm:text-4xl'+ >+ {t('agencies.compliance.title')}+ </Text>+ <Text+ as='p'+ size='lg'+ className='mt-4 leading-8 text-slate-600 dark:text-slate-300'+ >+ {t('agencies.compliance.subtitle')}+ </Text>+ </div>++ <div className='mt-14 grid grid-cols-1 gap-x-10 gap-y-10 sm:mt-16 sm:grid-cols-3'>+ {COMPLIANCE_POINTS.map(({ key, Icon, className }) => (+ <div key={key}>+ <div className='flex items-center gap-2'>+ <Icon+ weight='duotone'+ className={cn('size-5 shrink-0', className)}+ aria-hidden='true'+ />+ <Text as='h3' weight='semibold'>+ {t(`agencies.compliance.points.${key}.title`)}+ </Text>+ </div>+ <Text+ as='p'+ size='sm'+ colour='secondary'+ className='mt-2 pl-7 leading-relaxed'+ >+ {t(`agencies.compliance.points.${key}.description`)}+ </Text>+ </div>+ ))}+ </div>+ </section>+ )+}++export default function AgenciesRoute() {+ const { metainfo } = useLoaderData<typeof loader>()++ return (+ <div className='overflow-hidden'>+ <main className='bg-gray-50 dark:bg-slate-950'>+ <Hero />+ <LogoCloud />+ <AgencyWorkspace />+ <WhiteLabelReporting />+ <FeedbackDual />+ <FeaturesGrid />+ <Compliance />+ <MarketingPricing metainfo={metainfo} />+ <FAQ includeAgencyQuestions />+ <DitchGoogle />+ </main>+ </div>+ )+}diff --git a/web/app/utils/routes.ts b/web/app/utils/routes.tsindex c140aca49..15da9e743 100644--- a/web/app/utils/routes.ts+++ b/web/app/utils/routes.ts@@ -64,6 +64,7 @@ const routes = Object.freeze({// Marketing pagesgaAlternative: '/google-analytics-alternative',+ agencies: '/agencies',})export default routesdiff --git a/web/public/locales/en.json b/web/public/locales/en.jsonindex ee161d597..b2e11c5dd 100644--- a/web/public/locales/en.json+++ b/web/public/locales/en.json@@ -588,6 +588,85 @@"cta": "Start your free trial"}},+ "agencies": {+ "hero": {+ "eyebrow": "For agencies",+ "title": "Analytics your clients trust, reporting your agency owns",+ "subtitle": "Run every client site from one privacy-first workspace. Branded dashboards, one invoice, and the GDPR compliance your EU clients need - without the GA4 complexity.",+ "cta": "Start a {{days}}-day free trial",+ "viewDemo": "View live demo",+ "trust": {+ "oneWorkspace": "All clients, one workspace",+ "whiteLabel": "White-label reporting",+ "gdpr": "GDPR-compliant"+ }+ },+ "workspace": {+ "label": "One workspace",+ "title": "Every client site in <1>one place</1>",+ "subtitle": "Stop juggling a dozen GA properties and logins. Group clients into workspaces, switch between sites instantly, and give your whole team exactly the access they need.",+ "primary": {+ "title": "All client sites, one login",+ "description": "Organise sites into organisations, invite your team, and move between client dashboards without re-authenticating or exporting CSVs."+ },+ "roles": {+ "title": "Role-based access for staff and clients",+ "description": "Give account managers full access, contractors view-only, and clients a read-only window into their own data - and nothing more."+ },+ "billing": {+ "title": "One invoice for the whole roster",+ "description": "Bill everything to the agency on a single subscription, then add per-site event volume as individual clients grow. No per-seat surprises."+ },+ "stats": {+ "sites": "Up to 100 client sites on Plus",+ "members": "Unlimited team members",+ "invoice": "One invoice for the agency"+ }+ },+ "whiteLabel": {+ "label": "Client reporting",+ "title": "Reporting that looks like it came from you",+ "subtitle": "Share live dashboards under your own brand instead of screenshotting GA4. Public or password-protected links, embeddable anywhere, with automated email reports on your schedule.",+ "points": {+ "branded": {+ "title": "Branded, shareable dashboards",+ "description": "Send clients a live public dashboard or a password-protected link they can open anytime - no Swetrix account required."+ },+ "embed": {+ "title": "Embed in your own portal",+ "description": "Drop a dashboard straight into your client portal or report deck with a single iframe. It stays in your brand, not ours."+ },+ "reports": {+ "title": "Automated email reports",+ "description": "Schedule weekly or monthly reports so clients get their numbers without logging in - or chasing you for them."+ }+ },+ "snippet": {+ "filename": "client-report.html",+ "comment": "Embed any public dashboard, wrapped in your own brand."+ },+ "cta": "Start your free trial"+ },+ "compliance": {+ "label": "Privacy & compliance",+ "title": "The compliance your EU clients ask for",+ "subtitle": "Win and keep European clients with analytics that are private by design - no consent headaches, no data-transfer risk.",+ "points": {+ "gdpr": {+ "title": "GDPR-compliant by default",+ "description": "No personal data and no cross-site profiles, so you can hand clients a setup their legal team will sign off on."+ },+ "cookieless": {+ "title": "No cookie banners",+ "description": "Cookieless tracking means most client sites can drop the consent banner - and stop losing up to 40% of their data to declines."+ },+ "residency": {+ "title": "EU data, DPA included",+ "description": "Data is processed in the EU and we'll sign a DPA, so you can answer the procurement questionnaire with confidence."+ }+ }+ }+ },"main": {"seeLiveDemo": "See the live demo","goToBilling": "Go to billing",@@ -644,6 +723,24 @@"q": "Will my site run faster than with GA?","a": "Swetrix is designed to be lightweight. Less script weight and fewer third-party calls can mean a faster site, especially on slow connections."}+ ],+ "agencyItems": [+ {+ "q": "Can I manage multiple client sites from one account?",+ "a": "Yes. Group client sites into organisations, invite your team, and switch between dashboards without logging out. The Plus plan covers up to 100 websites, and Enterprise removes the limit entirely."+ },+ {+ "q": "Can I white-label dashboards and reports for clients?",+ "a": "You can share live public or password-protected dashboards, embed them in your own client portal via iframe, and schedule automated email reports - so clients see their data in your context, not a generic GA export."+ },+ {+ "q": "How does billing work for an agency with many clients?",+ "a": "Everything runs on a single agency subscription with one invoice. Pick an event volume that covers your whole roster and scale it up as clients grow - there are no per-seat fees and team members are unlimited."+ },+ {+ "q": "Is Swetrix GDPR-compliant for my EU clients?",+ "a": "Yes. Swetrix is cookieless and collects no personal data, so most client sites can skip the cookie banner. Data is processed in the EU and we can sign a DPA for clients who require one."+ }]},"slogan": "Turn traffic into insights",@@ -3526,6 +3623,7 @@"cookiePolicy": "Cookie Policy","termsAndConditions": "Terms and Conditions","gaAlternative": "Cookieless Google Analytics alternative",+ "agencies": "Privacy-first analytics for agencies","projectWithPassword": "Website analytics - password required","subscribe": "Start your free trial"},@@ -3556,13 +3654,9 @@"watchDemo": "Watch demo","contactSales": "Contact sales","trialBanner": {- "pickAPlan": "Pick a plan",- "keepUsing": "to keep using without interruption.",- "keepUsingEnded": "to keep using Swetrix.",- "youHaveXDaysLeft": "You have {{amount}} days left on your free trial",- "endsToday": "Your free trial ends today",- "endsTomorrow": "Your free trial ends tomorrow",- "ended": "Your free trial has ended"+ "reviewBilling": "Review billing",+ "endedTitle": "Trial ended",+ "endedBody": "Your projects and data are kept. Choose a plan to view analytics again."},"solutions": {"title": "Solutions",@@ -3581,6 +3675,14 @@"performance": {"title": "Performance monitoring","desc": "Analyse your sites key speed metrics"+ },+ "gaAlternative": {+ "title": "Google Analytics alternative",+ "desc": "The cookieless, privacy-first GA4 replacement"+ },+ "agencies": {+ "title": "For agencies",+ "desc": "Manage every client site from one privacy-first workspace"}}},