📈 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
Book a call
Blue Mouseaa842935d543
diff --git a/web/app/components/marketing/LogoCloud.tsx b/web/app/components/marketing/LogoCloud.tsxindex 858c7f141..8c711bcf2 100644--- a/web/app/components/marketing/LogoCloud.tsx+++ b/web/app/components/marketing/LogoCloud.tsx@@ -4,7 +4,7 @@ import { useTheme } from '~/providers/ThemeProvider'import { Text } from '~/ui/Text'import { cn } from '~/utils/generic'-interface ImageLogo {+export interface ImageLogo {type: 'image'name: stringlight: string@@ -14,7 +14,7 @@ interface ImageLogo {heightClass: string}-const LOGOS: ImageLogo[] = [+export const LOGOS: ImageLogo[] = [{type: 'image',name: 'Casterlabs',diff --git a/web/app/lib/constants/index.ts b/web/app/lib/constants/index.tsindex 282c8854e..aced628f7 100644--- a/web/app/lib/constants/index.ts+++ b/web/app/lib/constants/index.ts@@ -361,7 +361,9 @@ export const DISCORD_URL = 'https://discord.gg/ZVK8Tw2E8j'export const STATUSPAGE_URL = 'https://status.swetrix.com/'export const MAIN_URL = 'https://swetrix.com'export const LIVE_DEMO_URL = '/projects/STEzHcB1rALV'-export const BOOK_A_CALL_URL = 'https://cal.com/swetrix'+export const BOOK_A_CALL_URL = 'https://cal.com/swetrix/30min'+/** The cal.com link slug (without origin) used by the @calcom/embed-react inline widget. */+export const BOOK_A_CALL_CAL_LINK = 'swetrix/30min'export const PERFORMANCE_LIVE_DEMO_URL ='/projects/STEzHcB1rALV?tab=performance'export const ERROR_TRACKING_LIVE_DEMO_URL = '/projects/STEzHcB1rALV?tab=errors'diff --git a/web/app/pages/BookACall/index.tsx b/web/app/pages/BookACall/index.tsxnew file mode 100644index 000000000..ade3848fb--- /dev/null+++ b/web/app/pages/BookACall/index.tsx@@ -0,0 +1,106 @@+import Cal, { getCalApi } from '@calcom/embed-react'+import { useEffect } from 'react'+import { useTranslation } from 'react-i18next'+import { ClientOnly } from 'remix-utils/client-only'++import { LOGOS } from '~/components/marketing/LogoCloud'+import { BOOK_A_CALL_CAL_LINK } from '~/lib/constants'+import { useTheme } from '~/providers/ThemeProvider'+import { Text } from '~/ui/Text'+import { cn } from '~/utils/generic'++const CAL_NAMESPACE = '30min'++const BookACall = () => {+ const { t } = useTranslation('common')+ const { theme } = useTheme()++ // Configure the embed once it's ready, and re-apply whenever the site theme+ // toggles so the widget stays in sync with light/dark mode.+ useEffect(() => {+ let cancelled = false++ ;(async () => {+ const cal = await getCalApi({ namespace: CAL_NAMESPACE })+ if (cancelled) {+ return+ }+ cal('ui', {+ theme,+ layout: 'month_view',+ hideEventTypeDetails: false,+ })+ })()++ return () => {+ cancelled = true+ }+ }, [theme])++ return (+ <div className='min-h-min-footer bg-gray-50 dark:bg-slate-950'>+ <div className='mx-auto max-w-5xl px-4 pt-12 pb-16 sm:px-6 lg:px-8'>+ <div className='mx-auto max-w-2xl text-center'>+ <Text as='h1' size='4xl' weight='bold' tracking='tight'>+ {t('bookACall.title')}+ </Text>+ <Text+ as='p'+ size='lg'+ colour='secondary'+ className='mt-3 leading-7 text-pretty'+ >+ {t('bookACall.description')}+ </Text>+ </div>++ <div className='mt-10 min-h-[640px] overflow-hidden rounded-2xl bg-white ring-1 ring-gray-300/80 dark:bg-slate-900 dark:ring-white/10'>+ <ClientOnly+ fallback={+ <div className='h-[640px] w-full animate-pulse bg-gray-100 dark:bg-slate-800/60' />+ }+ >+ {() => (+ <Cal+ namespace={CAL_NAMESPACE}+ calLink={BOOK_A_CALL_CAL_LINK}+ style={{ width: '100%', height: '100%', overflow: 'scroll' }}+ config={{ layout: 'month_view', theme }}+ />+ )}+ </ClientOnly>+ </div>++ <div className='mt-14'>+ <Text+ as='p'+ size='xs'+ weight='semibold'+ colour='muted'+ className='text-center tracking-[0.18em] uppercase'+ >+ {t('main.logoCloud.title')}+ </Text>+ <ul className='mx-auto mt-8 flex max-w-3xl flex-wrap items-center justify-center gap-x-10 gap-y-6'>+ {LOGOS.map((logo) => (+ <li key={logo.name} className='flex items-center justify-center'>+ <img+ alt={logo.name}+ src={logo.dark && theme === 'dark' ? logo.dark : logo.light}+ loading='lazy'+ className={cn(+ 'w-auto max-w-[150px] object-contain',+ logo.heightClass,+ !logo.dark && 'dark:brightness-0 dark:invert',+ )}+ />+ </li>+ ))}+ </ul>+ </div>+ </div>+ </div>+ )+}++export default BookACalldiff --git a/web/app/pages/Contact/index.tsx b/web/app/pages/Contact/index.tsxindex fd7c47f34..7e34ccf4e 100644--- a/web/app/pages/Contact/index.tsx+++ b/web/app/pages/Contact/index.tsx@@ -1,4 +1,4 @@-import { ArrowSquareOutIcon } from '@phosphor-icons/react'+import { ArrowSquareOutIcon, ArrowRightIcon } from '@phosphor-icons/react'import { useState } from 'react'import { useTranslation, Trans } from 'react-i18next'@@ -9,37 +9,63 @@ import {TWITTER_USERNAME,DISCORD_URL,DOCS_URL,- BOOK_A_CALL_URL,isSelfhosted,} from '~/lib/constants'import { useAuth } from '~/providers/AuthProvider'+import { Link } from '~/ui/Link'import { Text } from '~/ui/Text'+import routesPath from '~/utils/routes'interface PanelProps {href: stringtitle: stringdescription: string+ /** Internal links stay on-site (localised <Link>); external ones open in a new tab. */+ internal?: boolean}-const Panel = ({ href, title, description }: PanelProps) => (- <a- href={href}- target='_blank'- rel='noopener noreferrer'- className='relative block rounded-2xl border border-gray-300/80 bg-gray-100 p-10 transition-colors hover:bg-gray-200 dark:border-slate-900/80 dark:bg-slate-800/80 dark:hover:bg-slate-900'- >- <ArrowSquareOutIcon- aria-hidden='true'- className='absolute top-5 right-5 size-5 text-gray-900 dark:text-gray-100'- />- <Text as='h3' size='lg' weight='semibold' className='leading-7'>- {title}- </Text>- <Text as='p' size='sm' colour='secondary' className='mt-3 leading-6'>- {description}- </Text>- </a>-)+const panelClassName =+ 'relative block rounded-2xl border border-gray-300/80 bg-gray-100 p-10 transition-colors hover:bg-gray-200 dark:border-slate-900/80 dark:bg-slate-800/80 dark:hover:bg-slate-900'++const Panel = ({ href, title, description, internal }: PanelProps) => {+ const body = (+ <>+ <Text as='h3' size='lg' weight='semibold' className='leading-7'>+ {title}+ </Text>+ <Text as='p' size='sm' colour='secondary' className='mt-3 leading-6'>+ {description}+ </Text>+ </>+ )++ if (internal) {+ return (+ <Link to={href} className={panelClassName}>+ <ArrowRightIcon+ aria-hidden='true'+ className='absolute top-5 right-5 size-5 text-gray-900 dark:text-gray-100'+ />+ {body}+ </Link>+ )+ }++ return (+ <a+ href={href}+ target='_blank'+ rel='noopener noreferrer'+ className={panelClassName}+ >+ <ArrowSquareOutIcon+ aria-hidden='true'+ className='absolute top-5 right-5 size-5 text-gray-900 dark:text-gray-100'+ />+ {body}+ </a>+ )+}const Contact = () => {const { t } = useTranslation('common')@@ -108,7 +134,8 @@ const Contact = () => {description={t('contact.docs.desc')}/><Panel- href={BOOK_A_CALL_URL}+ internal+ href={routesPath.bookACall}title={t('contact.demo.title')}description={t('contact.demo.desc')}/>diff --git a/web/app/pages/Landings/Marketers.tsx b/web/app/pages/Landings/Marketers.tsxindex 9b83ea9d9..7f0f7c1cd 100644--- a/web/app/pages/Landings/Marketers.tsx+++ b/web/app/pages/Landings/Marketers.tsx@@ -7,7 +7,6 @@ import Header from '~/components/Header'import { ComparisonTable } from '~/components/marketing/ComparisonTable'import { DitchGoogle } from '~/components/marketing/DitchGoogle'import {- BOOK_A_CALL_URL,DISCORD_URL,INTEGRATIONS_URL,LIVE_DEMO_URL,@@ -118,18 +117,16 @@ const Marketers = () => {</span></a></div>- <a- href={BOOK_A_CALL_URL}+ <Link+ to={routesPath.bookACall}className='mx-auto mt-8 flex max-w-max items-center border-0 font-bold text-slate-900 hover:underline dark:text-gray-100'- target='_blank'- rel='noopener noreferrer'- aria-label={`${t('common.bookACall')} (opens in a new tab)`}+ aria-label={t('common.bookACall')}><span className='text-base font-semibold'>{t('common.bookACall')}</span><ArrowRightIcon className='mt-[1px] h-4 w-5' />- </a>+ </Link></div></div><div className='relative z-20 mx-auto mt-10 block max-w-[1300px] px-4 md:px-0'>diff --git a/web/app/pages/Landings/SmallBusinesses.tsx b/web/app/pages/Landings/SmallBusinesses.tsxindex 8a513323b..4d76786df 100644--- a/web/app/pages/Landings/SmallBusinesses.tsx+++ b/web/app/pages/Landings/SmallBusinesses.tsx@@ -7,7 +7,6 @@ import Header from '~/components/Header'import { ComparisonTable } from '~/components/marketing/ComparisonTable'import { DitchGoogle } from '~/components/marketing/DitchGoogle'import {- BOOK_A_CALL_URL,DISCORD_URL,LIVE_DEMO_URL,TWITTER_URL,@@ -119,18 +118,16 @@ const SmallBusinesses = () => {</span></a></div>- <a- href={BOOK_A_CALL_URL}+ <Link+ to={routesPath.bookACall}className='mx-auto mt-8 flex max-w-max items-center border-0 font-bold text-slate-900 hover:underline dark:text-gray-100'- target='_blank'- rel='noopener noreferrer'- aria-label={`${t('common.bookACall')} (opens in a new tab)`}+ aria-label={t('common.bookACall')}><span className='text-base font-semibold'>{t('common.bookACall')}</span><ArrowRightIcon className='mt-[1px] h-4 w-5' />- </a>+ </Link></div></div><div className='relative z-20 mx-auto mt-10 block max-w-[1300px] px-4 md:px-0'>diff --git a/web/app/pages/Landings/Startups.tsx b/web/app/pages/Landings/Startups.tsxindex ce831752a..bd8efda25 100644--- a/web/app/pages/Landings/Startups.tsx+++ b/web/app/pages/Landings/Startups.tsx@@ -7,7 +7,6 @@ import Header from '~/components/Header'import { ComparisonTable } from '~/components/marketing/ComparisonTable'import { DitchGoogle } from '~/components/marketing/DitchGoogle'import {- BOOK_A_CALL_URL,DISCORD_URL,LIVE_DEMO_URL,INTEGRATIONS_URL,@@ -118,18 +117,16 @@ const Startups = () => {</span></a></div>- <a- href={BOOK_A_CALL_URL}+ <Link+ to={routesPath.bookACall}className='mx-auto mt-8 flex max-w-max items-center border-0 font-bold text-slate-900 hover:underline dark:text-gray-100'- target='_blank'- rel='noopener noreferrer'- aria-label={`${t('common.bookACall')} (opens in a new tab)`}+ aria-label={t('common.bookACall')}><span className='text-base font-semibold'>{t('common.bookACall')}</span><ArrowRightIcon className='mt-[1px] h-4 w-5' />- </a>+ </Link></div></div><div className='relative z-20 mx-auto mt-10 block max-w-[1300px] px-4 md:px-0'>diff --git a/web/app/routes/book-a-call.tsx b/web/app/routes/book-a-call.tsxnew file mode 100644index 000000000..2d7ae9165--- /dev/null+++ b/web/app/routes/book-a-call.tsx@@ -0,0 +1,42 @@+import { useTranslation } from 'react-i18next'+import type { MetaFunction } from 'react-router'+import { redirect } from 'react-router'+import { SitemapFunction } from 'remix-sitemap'++import {+ getOgImageUrl,+ isDisableMarketingPages,+ isSelfhosted,+} from '~/lib/constants'+import BookACall from '~/pages/BookACall'+import { getDescription, getPreviewImage, getTitle } from '~/utils/seo'++export const meta: MetaFunction = () => {+ // eslint-disable-next-line react-hooks/rules-of-hooks+ const { t } = useTranslation('common')++ return [+ ...getTitle(t('bookACall.title')),+ ...getDescription(t('description.bookACall')),+ ...getPreviewImage(+ getOgImageUrl(t('bookACall.title'), t('description.bookACall')),+ ),+ ]+}++export const sitemap: SitemapFunction = () => ({+ priority: 0.9,+ exclude: isSelfhosted || isDisableMarketingPages,+})++export async function loader() {+ if (isSelfhosted || isDisableMarketingPages) {+ return redirect('/dashboard', 302)+ }++ return null+}++export default function Index() {+ return <BookACall />+}diff --git a/web/app/utils/routes.ts b/web/app/utils/routes.tsindex dfa873cc5..efd80132c 100644--- a/web/app/utils/routes.ts+++ b/web/app/utils/routes.ts@@ -26,6 +26,7 @@ const routes = Object.freeze({security: '/security',terms: '/terms',contact: '/contact',+ bookACall: '/book-a-call',feedback: '/feedback',transfer_confirm: '/project/transfer/confirm',transfer_reject: '/project/transfer/cancel',diff --git a/web/package-lock.json b/web/package-lock.jsonindex 106d3b476..5b1ce605d 100644--- a/web/package-lock.json+++ b/web/package-lock.json@@ -6,6 +6,7 @@"": {"license": "AGPL-3.0","dependencies": {+ "@calcom/embed-react": "^1.5.3","@headlessui/react": "^2.2.10","@nivo/sankey": "^0.99.0","@phosphor-icons/react": "^2.1.10",@@ -551,6 +552,35 @@"node": ">=6.9.0"}},+ "node_modules/@calcom/embed-core": {+ "version": "1.5.3",+ "resolved": "https://registry.npmjs.org/@calcom/embed-core/-/embed-core-1.5.3.tgz",+ "integrity": "sha512-GeId9gaByJ5EWiPmuvelZOvFWPOTWkcWZr5vGTCbIUTX125oE5yn0n8lDF1MJk5Xj1WO+/dk9jKIE08Ad9ytiQ==",+ "license": "SEE LICENSE IN LICENSE"+ },+ "node_modules/@calcom/embed-react": {+ "version": "1.5.3",+ "resolved": "https://registry.npmjs.org/@calcom/embed-react/-/embed-react-1.5.3.tgz",+ "integrity": "sha512-JCgge04pc8fhdvUmPNVLhW8/lCWK+AAziKecKWWPfv1nn2s+qKP2BwsEAnxhxK9yPOBgE1EIEgmYkrrNB1iajA==",+ "license": "SEE LICENSE IN LICENSE",+ "dependencies": {+ "@calcom/embed-core": "1.5.3",+ "@calcom/embed-snippet": "1.3.3"+ },+ "peerDependencies": {+ "react": "^18.2.0 || ^19.0.0",+ "react-dom": "^18.2.0 || ^19.0.0"+ }+ },+ "node_modules/@calcom/embed-snippet": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/@calcom/embed-snippet/-/embed-snippet-1.3.3.tgz",+ "integrity": "sha512-pqqKaeLB8R6BvyegcpI9gAyY6Xyx1bKYfWvIGOvIbTpguWyM1BBBVcT9DCeGe8Zw7Ujp5K56ci7isRUrT2Uadg==",+ "license": "SEE LICENSE IN LICENSE",+ "dependencies": {+ "@calcom/embed-core": "1.5.3"+ }+ },"node_modules/@crowdin/crowdin-api-client": {"version": "1.55.2","resolved": "https://registry.npmjs.org/@crowdin/crowdin-api-client/-/crowdin-api-client-1.55.2.tgz",@@ -5258,13 +5288,15 @@"license": "MIT"},"node_modules/baseline-browser-mapping": {- "version": "2.9.11",- "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.11.tgz",- "integrity": "sha512-Sg0xJUNDU1sJNGdfGWhVHX0kkZ+HWcvmVymJbj6NSgZZmW/8S9Y2HQ5euytnIgakgxN6papOAWiwDo1ctFDcoQ==",+ "version": "2.10.33",+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.33.tgz",+ "integrity": "sha512-bA6+tcSLpz2tIEdDXZPpPTIuxBcC4+w6SieaYyfigIa4h8GlFxbA17v22Vx3JUtuZQj9SgOsnbK+aTBzyDyEuw==","dev": true,- "license": "Apache-2.0","bin": {- "baseline-browser-mapping": "dist/cli.js"+ "baseline-browser-mapping": "dist/cli.cjs"+ },+ "engines": {+ "node": ">=6.0.0"}},"node_modules/basic-auth": {@@ -5496,9 +5528,9 @@}},"node_modules/caniuse-lite": {- "version": "1.0.30001761",- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001761.tgz",- "integrity": "sha512-JF9ptu1vP2coz98+5051jZ4PwQgd2ni8A+gYSN7EA7dPKIMf0pDlSUxhdmVOaV3/fYK5uWBkgSXJaRLr4+3A6g==",+ "version": "1.0.30001793",+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001793.tgz",+ "integrity": "sha512-iwSsYWaCOoh26cV8NwNRViHlrfUvYsHDfRVcbtmw0Kg6PJIZZXwMkj1442FYLBGkeUf1juAsU3DTfxW579mrPA==","dev": true,"funding": [{@@ -5513,8 +5545,7 @@"type": "github","url": "https://github.com/sponsors/ai"}- ],- "license": "CC-BY-4.0"+ ]},"node_modules/chokidar": {"version": "4.0.3",diff --git a/web/package.json b/web/package.jsonindex 3bf59bc51..509c678bf 100644--- a/web/package.json+++ b/web/package.json@@ -19,6 +19,7 @@"translate": "node scripts/translate.js"},"dependencies": {+ "@calcom/embed-react": "^1.5.3","@headlessui/react": "^2.2.10","@nivo/sankey": "^0.99.0","@phosphor-icons/react": "^2.1.10",diff --git a/web/public/locales/en.json b/web/public/locales/en.jsonindex b7e3b44fe..77741d7dd 100644--- a/web/public/locales/en.json+++ b/web/public/locales/en.json@@ -2940,6 +2940,10 @@"desc": "Have product feedback, bugs, or ideas? <feedback>Give feedback</feedback> and include screenshots if useful."}},+ "bookACall": {+ "title": "Close the gaps in your website analytics",+ "description": "Consent prompts, browser privacy controls, and ad blockers can leave reports undercounted. Book a call and we'll review your setup, estimate what's missing, and show how Swetrix measures traffic without tracking cookies."+ },"feedback": {"giveFeedback": "Give feedback","title": "Share feedback",@@ -3104,6 +3108,7 @@"blog": "Stay updated with the latest insights, product updates, case studies, and use cases from Swetrix.","captcha": "Swetrix Captcha is a privacy-first alternative to traditional CAPTCHAs. Protect your website from bots and spam without annoying your users with puzzles.","contact": "Contact Swetrix (cookieless & privacy-first Google Analytics alternative) for support, feedback, or any questions and suggestions.",+ "bookACall": "Book a call with Swetrix to review gaps caused by consent prompts, browser privacy controls, and ad blockers, then see how cookieless analytics gives you clearer traffic data.","errorTracking": "Privacy-first end-user error tracking by Swetrix. Set up in one line, see errors by browser/device/location, and fix issues faster. 14-day free trial - no card required.","login": "Log in to Swetrix to view your cookieless, privacy-friendly analytics - real-time insights, no tracking cookies, no GA clutter.","signup": "Create your Swetrix account and start tracking website traffic with cookieless, privacy-friendly analytics - simple setup, real-time stats.",