📈 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
Show live Live demo
Blue Mouse2b0b5848e5d9
diff --git a/web/app/pages/Project/Alerts/View/ProjectAlertsView.tsx b/web/app/pages/Project/Alerts/View/ProjectAlertsView.tsxindex f3b7e34fa..9737571dd 100644--- a/web/app/pages/Project/Alerts/View/ProjectAlertsView.tsx+++ b/web/app/pages/Project/Alerts/View/ProjectAlertsView.tsx@@ -331,7 +331,7 @@ const ProjectAlerts = () => {<p className='mt-2 text-sm whitespace-pre-wrap text-gray-100'>{t('dashboard.alertsDesc')}</p><ButtononClick={handleNewAlert}- className='mt-6 rounded-md border border-transparent bg-white px-3 py-2 text-sm font-medium text-gray-700 hover:bg-indigo-50 md:px-4'+ className='mt-6 block max-w-max rounded-md border border-transparent bg-white px-3 py-2 text-sm font-medium text-gray-700 hover:bg-indigo-50 md:px-4'secondarylarge>diff --git a/web/app/pages/Project/View/ViewProject.tsx b/web/app/pages/Project/View/ViewProject.tsxindex 1dbef8bf4..bee48b71e 100644--- a/web/app/pages/Project/View/ViewProject.tsx+++ b/web/app/pages/Project/View/ViewProject.tsx@@ -3144,7 +3144,7 @@ const ViewProject = () => {<p className='mt-2 text-sm whitespace-pre-wrap text-gray-100'>{t('dashboard.alertsDesc')}</p><Linkto={routes.signup}- className='mt-6 rounded-md border border-transparent bg-white px-3 py-2 text-sm font-medium text-slate-900 hover:bg-indigo-50 md:px-4'+ className='mt-6 block max-w-max rounded-md border border-transparent bg-white px-3 py-2 text-sm font-medium text-slate-900 hover:bg-indigo-50 md:px-4'aria-label={t('titles.signup')}>{t('header.startForFree')}@@ -3179,14 +3179,14 @@ const ViewProject = () => {<buttontype='button'onClick={() => setIsNewFunnelOpened(true)}- className='mt-6 rounded-md border border-transparent bg-white px-3 py-2 text-sm font-medium text-slate-900 hover:bg-indigo-50 md:px-4'+ className='mt-6 block max-w-max rounded-md border border-transparent bg-white px-3 py-2 text-sm font-medium text-slate-900 hover:bg-indigo-50 md:px-4'>{t('dashboard.newFunnel')}</button>) : (<Linkto={routes.signup}- className='mt-6 rounded-md border border-transparent bg-white px-3 py-2 text-sm font-medium text-slate-900 hover:bg-indigo-50 md:px-4'+ className='mt-6 block max-w-max rounded-md border border-transparent bg-white px-3 py-2 text-sm font-medium text-slate-900 hover:bg-indigo-50 md:px-4'aria-label={t('titles.signup')}>{t('header.startForFree')}diff --git a/web/app/root.tsx b/web/app/root.tsxindex ac905c57e..195625239 100644--- a/web/app/root.tsx+++ b/web/app/root.tsx@@ -16,6 +16,7 @@ import {ScrollRestoration,isRouteErrorResponse,useRouteError,+ useSearchParams,} from 'react-router'import { useChangeLanguage } from 'remix-i18next/react'import { ExternalScripts } from 'remix-utils/external-scripts'@@ -208,14 +209,17 @@ const Body = () => {export default function App() {const { locale, url, theme, REMIX_ENV } = useLoaderData<typeof loader>()const { i18n } = useTranslation('common')+ const [searchParams] = useSearchParams()const urlObject = new URL(url)urlObject.searchParams.delete('lng')useChangeLanguage(locale)+ const isEmbedded = searchParams.get('embedded') === 'true'+return (- <html className='font-sans antialiased' lang={locale} dir={i18n.dir()}>+ <html className={cx('font-sans antialiased', { 'scrollbar-thin': isEmbedded })} lang={locale} dir={i18n.dir()}><head><meta charSet='utf-8' /><SEO />diff --git a/web/app/routes/_index.tsx b/web/app/routes/_index.tsxindex 5c5b69c14..98a7af874 100644--- a/web/app/routes/_index.tsx+++ b/web/app/routes/_index.tsx@@ -374,6 +374,22 @@ const Highlighted = ({ children }: { children: React.ReactNode }) => (</span>)+const LiveDemo = () => {+ const { theme } = useTheme()++ return (+ <div className='relative z-20 mx-auto mt-10 block max-w-7xl px-4 md:px-0'>+ <iframe+ src={`https://swetrix.com/projects/STEzHcB1rALV?tab=traffic&theme=${theme}&embedded=true`}+ width='100%'+ height='700'+ className='relative w-full rounded-xl ring-2 ring-gray-900/10 focus:outline-none dark:ring-white/10'+ title='Swetrix Analytics Live Demo'+ />+ </div>+ )+}+interface FeatureBlockProps {heading: stringdescription: string@@ -816,7 +832,6 @@ const CoreFeatures = () => {}const Hero = () => {- const { theme } = useTheme()const { t } = useTranslation('common')return (@@ -894,21 +909,7 @@ const Hero = () => {<Lines /></div></div>- <div className='relative z-20 mx-auto mt-10 block max-w-7xl px-4 md:px-0'>- <picture>- <source- srcSet={theme === 'dark' ? '/assets/screenshot_dark.webp' : '/assets/screenshot_light.webp'}- type='image/webp'- />- <img- src={theme === 'dark' ? '/assets/screenshot_dark.png' : '/assets/screenshot_light.png'}- className='relative w-full rounded-xl ring-2 ring-gray-900/10 dark:ring-white/10'- width='100%'- height='auto'- alt='Swetrix Analytics dashboard'- />- </picture>- </div>+ <LiveDemo /></div></div>)diff --git a/web/public/locales/en.json b/web/public/locales/en.jsonindex 567a4e31e..2261f4db2 100644--- a/web/public/locales/en.json+++ b/web/public/locales/en.json@@ -752,7 +752,7 @@"xCustomEvents": "{{x}} custom events","xErrors": "{{x}} errors","alerts": "Alerts",- "alertsDesc": "Automated alerts is a powerful tool that allows you to run automated tasks when specific events occur.\nWe can automatically monitor your project for traffic spikes and notify you via Telegram.",+ "alertsDesc": "Automated alerts is a powerful tool that allows you to run automated tasks when specific events occur.\nWe can automatically monitor your project for traffic spikes and notify you via Telegram, Slack or Discord.","funnelsDesc": "Funnels is a powerful tool that allows you to track the conversion rate of your users through a series of steps.\nThe analysis provided by the marketing funnel gives you the ability to discover potential problems, improve your website, and boost your conversion rate.","frontend": "Frontend","backend": "Backend",