Skip to content

📈 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!

Format

Blue Mousef63fed2e6ccb
diff --git a/backend/apps/cloud/src/goal/goal.controller.ts b/backend/apps/cloud/src/goal/goal.controller.ts
index 15b48f05a..14642305f 100644
--- a/backend/apps/cloud/src/goal/goal.controller.ts
+++ b/backend/apps/cloud/src/goal/goal.controller.ts
@@ -240,7 +240,7 @@ export class GoalController {
type: goalDto.type,
matchType: goalDto.matchType,
metadataFiltersExist: !!goalDto.metadataFilters?.length,
- }
+ },
})
return {
diff --git a/web/app/components/SEO.tsx b/web/app/components/SEO.tsx
index aefddc8f7..dc36e4057 100644
--- a/web/app/components/SEO.tsx
+++ b/web/app/components/SEO.tsx
@@ -45,10 +45,7 @@ export const SEO = () => {
<>
<title>{title}</title>
<meta property='og:title' content={title} />
- <meta
- name='twitter:title'
- content={title}
- />
+ <meta name='twitter:title' content={title} />
<meta
name='description'
content='Swetrix is a privacy-first, cookieless Google Analytics alternative with real-time analytics, no sampling, and built-in performance & error monitoring.'
diff --git a/web/app/components/marketing/FAQ.tsx b/web/app/components/marketing/FAQ.tsx
index c0d85c3f5..a355544bd 100644
--- a/web/app/components/marketing/FAQ.tsx
+++ b/web/app/components/marketing/FAQ.tsx
@@ -84,74 +84,77 @@ const FAQ = ({ includeGAQuestions = false }: FAQProps) => {
{t('main.faq.title')}
</h2>
<div className='mt-8 flex flex-col'>
- {_map(items, (item: { q: string; a: string; i18nKey: string }, idx: number) => {
- const showTopBorder = idx !== 0
+ {_map(
+ items,
+ (item: { q: string; a: string; i18nKey: string }, idx: number) => {
+ const showTopBorder = idx !== 0
- return (
- <details
- key={item.i18nKey}
- className={cn(
- 'group w-full text-left',
- showTopBorder &&
- 'border-t border-gray-200 dark:border-white/10',
- )}
- >
- <summary className='flex w-full cursor-pointer items-center justify-between px-4 py-4'>
- <span className='text-base font-medium text-slate-900 group-hover:underline dark:text-white'>
- <Trans t={t} i18nKey={`${item.i18nKey}.q`} />
- </span>
- <ChevronDownIcon className='size-4 text-slate-900 transition-transform group-open:rotate-180 dark:text-gray-200' />
- </summary>
- <div className='px-4'>
- <p className='pb-4 text-sm whitespace-pre-line text-slate-900 dark:text-gray-100'>
- <Trans
- t={t}
- i18nKey={`${item.i18nKey}.a`}
- values={values}
- components={{
- dataPolicyUrl: (
- <Link
- to={routesPath.dataPolicy}
- className='underline decoration-dashed hover:decoration-solid'
- aria-label='Data policy'
- onClick={onLinkClick}
- />
- ),
- apiDocumentationUrl: (
- <a
- href={DOCS_URL}
- className='underline decoration-dashed hover:decoration-solid'
- target='_blank'
- rel='noopener noreferrer'
- aria-label='API documentation (opens in a new tab)'
- onClick={onLinkClick}
- />
- ),
- contactUsUrl: (
- <Link
- to={routesPath.contact}
- className='underline decoration-dashed hover:decoration-solid'
- aria-label='Contact us'
- onClick={onLinkClick}
- />
- ),
- discordUrl: (
- <a
- href={DISCORD_URL}
- className='underline decoration-dashed hover:decoration-solid'
- target='_blank'
- rel='noopener noreferrer'
- aria-label='Discord (opens in a new tab)'
- onClick={onLinkClick}
- />
- ),
- }}
- />
- </p>
- </div>
- </details>
- )
- })}
+ return (
+ <details
+ key={item.i18nKey}
+ className={cn(
+ 'group w-full text-left',
+ showTopBorder &&
+ 'border-t border-gray-200 dark:border-white/10',
+ )}
+ >
+ <summary className='flex w-full cursor-pointer items-center justify-between px-4 py-4'>
+ <span className='text-base font-medium text-slate-900 group-hover:underline dark:text-white'>
+ <Trans t={t} i18nKey={`${item.i18nKey}.q`} />
+ </span>
+ <ChevronDownIcon className='size-4 text-slate-900 transition-transform group-open:rotate-180 dark:text-gray-200' />
+ </summary>
+ <div className='px-4'>
+ <p className='pb-4 text-sm whitespace-pre-line text-slate-900 dark:text-gray-100'>
+ <Trans
+ t={t}
+ i18nKey={`${item.i18nKey}.a`}
+ values={values}
+ components={{
+ dataPolicyUrl: (
+ <Link
+ to={routesPath.dataPolicy}
+ className='underline decoration-dashed hover:decoration-solid'
+ aria-label='Data policy'
+ onClick={onLinkClick}
+ />
+ ),
+ apiDocumentationUrl: (
+ <a
+ href={DOCS_URL}
+ className='underline decoration-dashed hover:decoration-solid'
+ target='_blank'
+ rel='noopener noreferrer'
+ aria-label='API documentation (opens in a new tab)'
+ onClick={onLinkClick}
+ />
+ ),
+ contactUsUrl: (
+ <Link
+ to={routesPath.contact}
+ className='underline decoration-dashed hover:decoration-solid'
+ aria-label='Contact us'
+ onClick={onLinkClick}
+ />
+ ),
+ discordUrl: (
+ <a
+ href={DISCORD_URL}
+ className='underline decoration-dashed hover:decoration-solid'
+ target='_blank'
+ rel='noopener noreferrer'
+ aria-label='Discord (opens in a new tab)'
+ onClick={onLinkClick}
+ />
+ ),
+ }}
+ />
+ </p>
+ </div>
+ </details>
+ )
+ },
+ )}
</div>
<script
type='application/ld+json'
diff --git a/web/app/pages/Project/View/Panels.tsx b/web/app/pages/Project/View/Panels.tsx
index 3783c0d08..02e8bc95b 100644
--- a/web/app/pages/Project/View/Panels.tsx
+++ b/web/app/pages/Project/View/Panels.tsx
@@ -109,7 +109,7 @@ const PanelContainer = ({
return (
<div
className={cx(
- 'overflow-hidden isolate rounded-lg border border-gray-200 bg-white px-4 pb-3 dark:border-slate-800/60 dark:bg-slate-800/25',
+ 'isolate overflow-hidden rounded-lg border border-gray-200 bg-white px-4 pb-3 dark:border-slate-800/60 dark:bg-slate-800/25',
hideHeader ? 'pt-3' : 'pt-5',
{
'col-span-full sm:col-span-2':
diff --git a/web/app/routes/google-analytics-alternative.tsx b/web/app/routes/google-analytics-alternative.tsx
index 9d0432055..cf5cbe47c 100644
--- a/web/app/routes/google-analytics-alternative.tsx
+++ b/web/app/routes/google-analytics-alternative.tsx
@@ -47,7 +47,6 @@ export const sitemap: SitemapFunction = () => ({
exclude: isSelfhosted || isDisableMarketingPages,
})
-
export async function loader({ request }: LoaderFunctionArgs) {
if (isSelfhosted || isDisableMarketingPages) {
return redirect('/login', 302)
@@ -66,9 +65,7 @@ const REVIEWERS = [
{ name: 'Andrii', image: '/assets/small-testimonials/andrii.jpg' },
]
-const Testimonials = ({ className }: {
- className?: string
-}) => {
+const Testimonials = ({ className }: { className?: string }) => {
const { t } = useTranslation('common')
const { stats } = useLoaderData<typeof loader>()
@@ -96,7 +93,11 @@ const Testimonials = ({ className }: {
))}
</div>
<div className='mt-1 flex flex-col items-center justify-center gap-1 md:items-start'>
- <div className='relative inline-flex' role='img' aria-label='5 out of 5 stars'>
+ <div
+ className='relative inline-flex'
+ role='img'
+ aria-label='5 out of 5 stars'
+ >
<StarIcon className='size-5 text-yellow-500' aria-hidden='true' />
<StarIcon className='size-5 text-yellow-500' aria-hidden='true' />
<StarIcon className='size-5 text-yellow-500' aria-hidden='true' />
@@ -105,9 +106,13 @@ const Testimonials = ({ className }: {
</div>
<div className='text-base text-gray-900/70 dark:text-gray-200'>
<span className='font-semibold text-gray-900 dark:text-gray-50'>
- {t('gaAlternative.hero.teams', { amount: stats?.users || '> 1000' })}
+ {t('gaAlternative.hero.teams', {
+ amount: stats?.users || '> 1000',
+ })}
</span>{' '}
- <span className='text-gray-700 dark:text-gray-200'>{t('gaAlternative.hero.ditched')}</span>
+ <span className='text-gray-700 dark:text-gray-200'>
+ {t('gaAlternative.hero.ditched')}
+ </span>
</div>
</div>
</div>
@@ -138,8 +143,10 @@ const LiveDemoPreview = () => {
href={LIVE_DEMO_URL}
target='_blank'
rel='noopener noreferrer'
- className='pointer-events-auto inline-flex items-center rounded-md bg-white px-4 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-black/10 transition-all hover:bg-gray-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 dark:bg-slate-900 dark:text-white dark:ring-white/10 dark:hover:bg-slate-800'
- aria-label={t('gaAlternative.hero.viewDemo') + ' (opens in a new tab)'}
+ className='pointer-events-auto inline-flex items-center rounded-md bg-white px-4 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-black/10 transition-all hover:bg-gray-50 focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:outline-none dark:bg-slate-900 dark:text-white dark:ring-white/10 dark:hover:bg-slate-800'
+ aria-label={
+ t('gaAlternative.hero.viewDemo') + ' (opens in a new tab)'
+ }
>
<ArrowRightIcon className='mr-2 h-4 w-4' />
{t('gaAlternative.hero.viewDemo')}
@@ -164,8 +171,10 @@ const LiveDemoPreview = () => {
href={LIVE_DEMO_URL}
target='_blank'
rel='noopener noreferrer'
- className='pointer-events-auto inline-flex items-center rounded-md bg-white px-4 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-black/10 transition-all hover:bg-gray-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 dark:bg-slate-900 dark:text-white dark:ring-white/10 dark:hover:bg-slate-800'
- aria-label={t('gaAlternative.hero.viewDemo') + ' (opens in a new tab)'}
+ className='pointer-events-auto inline-flex items-center rounded-md bg-white px-4 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-black/10 transition-all hover:bg-gray-50 focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:outline-none dark:bg-slate-900 dark:text-white dark:ring-white/10 dark:hover:bg-slate-800'
+ aria-label={
+ t('gaAlternative.hero.viewDemo') + ' (opens in a new tab)'
+ }
>
<ArrowRightIcon className='mr-2 h-4 w-4' />
{t('gaAlternative.hero.viewDemo')}
@@ -283,7 +292,7 @@ const ComparisonTable = () => {
<div className='mt-10 overflow-hidden rounded-2xl bg-white ring-1 ring-black/5 dark:bg-slate-800 dark:ring-white/10'>
<div className='overflow-x-auto'>
- <table className='min-w-[760px] w-full border-separate border-spacing-0'>
+ <table className='w-full min-w-[760px] border-separate border-spacing-0'>
<caption className='sr-only'>
{t('gaAlternative.comparison.title')}
</caption>
@@ -354,7 +363,9 @@ const WhySwitch = () => {
<Trans
i18nKey='gaAlternative.whySwitch.title'
components={{
- 1: <span className='rounded-md bg-slate-900 px-2 py-0.5 text-white dark:bg-white dark:text-slate-900' />
+ 1: (
+ <span className='rounded-md bg-slate-900 px-2 py-0.5 text-white dark:bg-white dark:text-slate-900' />
+ ),
}}
/>
</h2>
@@ -498,13 +509,15 @@ const Migration = () => {
</div>
<div className='p-4 font-mono text-sm leading-relaxed'>
<div className='text-slate-500'>
- {'<!-- That\'s it. Really. -->'}
+ {"<!-- That's it. Really. -->"}
</div>
<div className='mt-2'>
<span className='text-pink-400'>{'<script '}</span>
<span className='text-purple-400'>src</span>
<span className='text-slate-400'>=</span>
- <span className='text-amber-300'>"https://swetrix.org/swetrix.js"</span>
+ <span className='text-amber-300'>
+ "https://swetrix.org/swetrix.js"
+ </span>
<span className='text-sky-300'> defer</span>
<span className='text-pink-400'>{'></script>'}</span>
</div>