📈 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
Integrations section (#475)
Andrii Romasiun9fed93d4fa07
diff --git a/web/app/components/marketing/Integrations.tsx b/web/app/components/marketing/Integrations.tsxnew file mode 100644index 000000000..2261d659b--- /dev/null+++ b/web/app/components/marketing/Integrations.tsx@@ -0,0 +1,335 @@+import { ArrowRightIcon } from '@phosphor-icons/react'+import type { ComponentType, CSSProperties } from 'react'+import { useTranslation } from 'react-i18next'+import {+ siAngular,+ siAstro,+ siBigcommerce,+ siCarrd,+ siDjango,+ siDocusaurus,+ siDrupal,+ siFlask,+ siFramer,+ siGatsby,+ siGhost,+ siGoogletagmanager,+ siHugo,+ siJekyll,+ siLaravel,+ siNextdotjs,+ siNuxt,+ siReact,+ siRemix,+ siRubyonrails,+ siShopify,+ siSquarespace,+ siSvelte,+ siVuedotjs,+ siWebflow,+ siWix,+ siWoocommerce,+ siWordpress,+ type SimpleIcon,+} from 'simple-icons'++import GoogleGIcon from '~/ui/icons/GoogleG'+import { Text } from '~/ui/Text'+import { cn } from '~/utils/generic'++type IntegrationCategory = 'framework' | 'cms' | 'backend' | 'google'++const FEATURED_INTEGRATIONS: {+ name: string+ category: IntegrationCategory+ href: string+ icon?: SimpleIcon+ customIcon?: ComponentType<{ className?: string }>+ iconClassName?: string+}[] = [+ {+ name: 'Angular',+ category: 'framework',+ href: 'https://docs.swetrix.com/angular-integration',+ icon: siAngular,+ iconClassName: 'text-[#DD0031]',+ },+ {+ name: 'Astro',+ category: 'framework',+ href: 'https://docs.swetrix.com/astro-integration',+ icon: siAstro,+ },+ {+ name: 'BigCommerce',+ category: 'cms',+ href: 'https://docs.swetrix.com/bigcommerce-integration',+ icon: siBigcommerce,+ iconClassName: 'dark:text-white',+ },+ {+ name: 'Carrd',+ category: 'cms',+ href: 'https://docs.swetrix.com/carrd-integration',+ icon: siCarrd,+ },+ {+ name: 'Django',+ category: 'backend',+ href: 'https://docs.swetrix.com/django-integration',+ icon: siDjango,+ iconClassName: 'dark:text-[#44B78B]',+ },+ {+ name: 'Docusaurus',+ category: 'framework',+ href: 'https://docs.swetrix.com/docusaurus-integration',+ icon: siDocusaurus,+ },+ {+ name: 'Drupal',+ category: 'cms',+ href: 'https://docs.swetrix.com/drupal-integration',+ icon: siDrupal,+ },+ {+ name: 'Flask',+ category: 'backend',+ href: 'https://docs.swetrix.com/flask-integration',+ icon: siFlask,+ },+ {+ name: 'Framer',+ category: 'cms',+ href: 'https://docs.swetrix.com/framer-integration',+ icon: siFramer,+ },+ {+ name: 'Gatsby',+ category: 'framework',+ href: 'https://docs.swetrix.com/gatsby-integration',+ icon: siGatsby,+ },+ {+ name: 'Ghost',+ category: 'cms',+ href: 'https://docs.swetrix.com/ghost-integration',+ icon: siGhost,+ iconClassName: 'dark:text-white',+ },+ {+ name: 'Search Console',+ category: 'google',+ href: 'https://docs.swetrix.com/integrations/google-search-console',+ customIcon: GoogleGIcon,+ },+ {+ name: 'GTM',+ category: 'google',+ href: 'https://docs.swetrix.com/gtm-integration',+ icon: siGoogletagmanager,+ },+ {+ name: 'Hugo',+ category: 'framework',+ href: 'https://docs.swetrix.com/hugo-integration',+ icon: siHugo,+ },+ {+ name: 'Jekyll',+ category: 'framework',+ href: 'https://docs.swetrix.com/jekyll-integration',+ icon: siJekyll,+ },+ {+ name: 'Laravel',+ category: 'backend',+ href: 'https://docs.swetrix.com/laravel-integration',+ icon: siLaravel,+ },+ {+ name: 'Next.js',+ category: 'framework',+ href: 'https://docs.swetrix.com/nextjs-integration',+ icon: siNextdotjs,+ iconClassName: 'dark:text-white',+ },+ {+ name: 'Nuxt',+ category: 'framework',+ href: 'https://docs.swetrix.com/nuxt-integration',+ icon: siNuxt,+ },+ {+ name: 'React',+ category: 'framework',+ href: 'https://docs.swetrix.com/react-integration',+ icon: siReact,+ },+ {+ name: 'Remix',+ category: 'framework',+ href: 'https://docs.swetrix.com/remix-integration',+ icon: siRemix,+ iconClassName: 'dark:text-white',+ },+ {+ name: 'Ruby on Rails',+ category: 'backend',+ href: 'https://docs.swetrix.com/ruby-on-rails-integration',+ icon: siRubyonrails,+ },+ {+ name: 'Shopify',+ category: 'cms',+ href: 'https://docs.swetrix.com/shopify-integration',+ icon: siShopify,+ },+ {+ name: 'Squarespace',+ category: 'cms',+ href: 'https://docs.swetrix.com/squarespace-integration',+ icon: siSquarespace,+ iconClassName: 'dark:text-white',+ },+ {+ name: 'SvelteKit',+ category: 'framework',+ href: 'https://docs.swetrix.com/sveltekit-integration',+ icon: siSvelte,+ },+ {+ name: 'Vue',+ category: 'framework',+ href: 'https://docs.swetrix.com/vue-integration',+ icon: siVuedotjs,+ },+ {+ name: 'Webflow',+ category: 'cms',+ href: 'https://docs.swetrix.com/webflow-integration',+ icon: siWebflow,+ },+ {+ name: 'Wix',+ category: 'cms',+ href: 'https://docs.swetrix.com/wix-integration',+ icon: siWix,+ },+ {+ name: 'WooCommerce',+ category: 'cms',+ href: 'https://docs.swetrix.com/woocommerce-integration',+ icon: siWoocommerce,+ },+ {+ name: 'WordPress',+ category: 'cms',+ href: 'https://docs.swetrix.com/wordpress-integration',+ icon: siWordpress,+ },+]++const TOTAL_INTEGRATION_GUIDES = 41++const IntegrationLogo = ({+ icon,+ className,+ style,+}: {+ icon: SimpleIcon+ className?: string+ style?: CSSProperties+}) => (+ <svg+ viewBox='0 0 24 24'+ className={className}+ style={style}+ aria-hidden='true'+ >+ <path fill='currentColor' d={icon.path} />+ </svg>+)++const Integrations = () => {+ const { t } = useTranslation('common')+ const moreIntegrationsCount = Math.max(+ TOTAL_INTEGRATION_GUIDES - FEATURED_INTEGRATIONS.length,+ 0,+ )++ return (+ <section className='py-24 sm:py-32'>+ <div className='mx-auto max-w-7xl px-6 lg:px-8'>+ <div className='mx-auto max-w-2xl text-center'>+ <Text+ as='h2'+ size='3xl'+ weight='bold'+ tracking='tight'+ className='sm:text-4xl'+ colour='primary'+ >+ {t('main.integrations.title')}+ </Text>+ <Text as='p' size='lg' colour='secondary' className='mt-6 leading-8'>+ {t('main.integrations.description')}+ </Text>+ </div>++ <div className='mx-auto mt-16 grid max-w-2xl grid-cols-2 gap-4 sm:grid-cols-3 lg:max-w-none lg:grid-cols-6'>+ {FEATURED_INTEGRATIONS.map((integration) => (+ <a+ key={integration.name}+ href={integration.href}+ target='_blank'+ rel='noopener noreferrer'+ className={cn(+ 'group relative flex flex-col items-center justify-center gap-4 rounded-xl p-6 transition-all',+ 'border-2 border-gray-200 hover:border-gray-300 hover:bg-gray-50 dark:border-slate-800 dark:hover:border-slate-700 dark:hover:bg-slate-900/50',+ )}+ >+ {integration.customIcon ? (+ <integration.customIcon+ className={cn('size-8', integration.iconClassName)}+ />+ ) : integration.icon ? (+ <IntegrationLogo+ icon={integration.icon}+ className={cn(+ 'size-8 text-(--brand-color)',+ integration.iconClassName,+ )}+ style={+ {+ '--brand-color': `#${integration.icon.hex}`,+ } as CSSProperties+ }+ />+ ) : null}+ <Text as='div' size='sm' weight='semibold' colour='secondary'>+ {integration.name}+ </Text>+ </a>+ ))}+ <a+ href='https://docs.swetrix.com/integrations'+ target='_blank'+ rel='noopener noreferrer'+ className={cn(+ 'relative flex flex-col items-center justify-center gap-4 rounded-xl p-6 transition-all',+ 'border-2 border-dashed border-gray-200 hover:border-gray-300 hover:bg-gray-50 dark:border-slate-800 dark:hover:border-slate-700 dark:hover:bg-slate-900/50',+ )}+ >+ <ArrowRightIcon className='size-8 text-gray-900 dark:text-gray-50' />+ <Text as='div' size='sm' weight='semibold' colour='secondary'>+ {t('main.integrations.andMore', { count: moreIntegrationsCount })}+ </Text>+ </a>+ </div>+ </div>+ </section>+ )+}++export default Integrationsdiff --git a/web/app/routes/_index.tsx b/web/app/routes/_index.tsxindex afcfc53bf..c71068ed2 100644--- a/web/app/routes/_index.tsx+++ b/web/app/routes/_index.tsx@@ -40,6 +40,7 @@ import { getExperimentVariant } from '~/utils/analytics.server'import Header from '~/components/Header'import { DitchGoogle } from '~/components/marketing/DitchGoogle'import FAQ from '~/components/marketing/FAQ'+import Integrations from '~/components/marketing/Integrations'import MarketingPricing from '~/components/pricing/MarketingPricing'import useBreakpoint from '~/hooks/useBreakpoint'import {@@ -2179,6 +2180,8 @@ export default function Index() {<FeaturesGridAlt />)}+ <Integrations />+<MarketingPricing metainfo={metainfo} /><FAQ />diff --git a/web/package-lock.json b/web/package-lock.jsonindex 797dbc808..7b9b9e852 100644--- a/web/package-lock.json+++ b/web/package-lock.json@@ -49,6 +49,7 @@"remix-sitemap": "^3.2.1","remix-utils": "^9.0.0","sanitize-html": "^2.17.0",+ "simple-icons": "^16.8.0","sonner": "^2.0.7","spacetime": "^7.12.0","swetrix": "^4.1.0",@@ -7419,6 +7420,25 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/simple-icons": {+ "version": "16.8.0",+ "resolved": "https://registry.npmjs.org/simple-icons/-/simple-icons-16.8.0.tgz",+ "integrity": "sha512-JOqFl9rXrUkEVwYryZVvfySG6znMg+79KpDIDtAd9mXZAPfLyhVdhhGKg7EYioYzozxXd+5KvURTMguTl0QfbA==",+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/simple-icons"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/simple-icons"+ }+ ],+ "license": "CC0-1.0",+ "engines": {+ "node": ">=0.12.18"+ }+ },"node_modules/smol-toml": {"version": "1.6.0","resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.6.0.tgz",diff --git a/web/package.json b/web/package.jsonindex 92e66f606..3670d8da0 100644--- a/web/package.json+++ b/web/package.json@@ -61,6 +61,7 @@"remix-sitemap": "^3.2.1","remix-utils": "^9.0.0","sanitize-html": "^2.17.0",+ "simple-icons": "^16.8.0","sonner": "^2.0.7","spacetime": "^7.12.0","swetrix": "^4.1.0",diff --git a/web/public/locales/de.json b/web/public/locales/de.jsonindex cfa468303..a8f312df9 100644--- a/web/public/locales/de.json+++ b/web/public/locales/de.json@@ -666,6 +666,11 @@"title": "A/B-Tests & Experimente","description": "Führen Sie datengestützte Experimente zur Optimierung der Conversions durch. Vergleichen Sie Varianten mit statistischer Sicherheit, verfolgen Sie Exposures und messen Sie die tatsächliche Wirkung Ihrer Änderungen."},+ "integrations": {+ "title": "Funktioniert mit den Tools, die Sie bereits verwenden",+ "description": "Swetrix lässt sich in alles integrieren. Unser schlankes Skript umfasst nur wenige Kilobyte in Ihrem Quellcode. Sie können es zu jedem CMS, Framework oder jeder Technologie hinzufügen, die Sie bereits nutzen.",+ "andMore": "+{{count}} mehr"+ },"timeToDitchGoogleAnalytics": "Es ist Zeit Google Analytics <colour>aufzugeben</colour>.","whyDitch": "Wir waren von der Frustration, der Komplexität und dem Datenschutz von Google Analytics müde und waren auch dabei. Deshalb haben wir Swetrix gebaut - die ethische, quelloffene und voll Cookieless Alternative.","users": "Registrierte Nutzer",diff --git a/web/public/locales/en.json b/web/public/locales/en.jsonindex 1dc573956..d4adb185f 100644--- a/web/public/locales/en.json+++ b/web/public/locales/en.json@@ -666,6 +666,11 @@"title": "A/B testing & experiments","description": "Run data-driven experiments to optimise conversions. Compare variants with statistical confidence, track exposures and measure the real impact of your changes."},+ "integrations": {+ "title": "Works with the tools you already use",+ "description": "Swetrix integrates with everything. Our lightweight script is just a few kilobytes in your source code. You can add it to any CMS, framework or technology you're already using.",+ "andMore": "+{{count}} more"+ },"timeToDitchGoogleAnalytics": "It's time <colour>to ditch</colour> Google Analytics.","whyDitch": "Tired of the frustration, complexity and privacy issues of Google Analytics? We were too. That's why we built Swetrix - the ethical, open source and fully cookieless alternative.","users": "Registered users",diff --git a/web/public/locales/fr.json b/web/public/locales/fr.jsonindex 502607a38..5a7e0e160 100644--- a/web/public/locales/fr.json+++ b/web/public/locales/fr.json@@ -666,6 +666,11 @@"title": "Tests A/B et expérimentations","description": "Menez des expériences pilotées par les données pour optimiser les conversions. Comparez des variantes avec une confiance statistique, suivez les expositions et mesurez l’impact réel de vos changements."},+ "integrations": {+ "title": "Fonctionne avec les outils que vous utilisez déjà",+ "description": "Swetrix s’intègre à tout. Notre script léger ne représente que quelques kilo-octets dans votre code source. Vous pouvez l’ajouter à n’importe quel CMS, framework ou technologie que vous utilisez déjà.",+ "andMore": "+{{count}} de plus"+ },"timeToDitchGoogleAnalytics": "Il est temps de <colour>laisser tomber</colour> Google Analytics.","whyDitch": "Vous en avez assez de la frustration, de la complexité et des problèmes de confidentialité de Google Analytics ? Nous aussi. C'est pourquoi nous avons créé Swetrix : l'alternative éthique, open source et entièrement sans cookies.","users": "Utilisateurs enregistrés",diff --git a/web/public/locales/pl.json b/web/public/locales/pl.jsonindex 2ca4a1405..e084ab06a 100644--- a/web/public/locales/pl.json+++ b/web/public/locales/pl.json@@ -666,6 +666,11 @@"title": "Testy A/B i eksperymenty","description": "Prowadź eksperymenty oparte na danych, aby optymalizować konwersje. Porównuj warianty z istotnością statystyczną, śledź ekspozycje i mierz realny wpływ zmian."},+ "integrations": {+ "title": "Działa z narzędziami, których już używasz",+ "description": "Swetrix integruje się ze wszystkim. Nasz lekki skrypt to zaledwie kilka kilobajtów w Twoim kodzie źródłowym. Możesz dodać go do dowolnego CMS-a, frameworka lub technologii, z których już korzystasz.",+ "andMore": "+{{count}} więcej"+ },"timeToDitchGoogleAnalytics": "Nadszedł czas, aby <colour>porzucić</colour> Google Analytics.","whyDitch": "Zmęczeni frustracją, złożonością i problemami z prywatnością Google Analytics? My też. Dlatego stworzyliśmy Swetrix - etyczną, open source i całkowicie pozbawioną ciasteczek alternatywę.","users": "Zarejestrowani użytkownicy",diff --git a/web/public/locales/uk.json b/web/public/locales/uk.jsonindex 9507ab6b6..c0d583c8a 100644--- a/web/public/locales/uk.json+++ b/web/public/locales/uk.json@@ -666,6 +666,11 @@"title": "A/B‑тестування та експерименти","description": "Проводьте експерименти на основі даних, щоб оптимізувати конверсії. Порівнюйте варіанти зі статистичною достовірністю, відстежуйте покази (exposure) та вимірюйте реальний вплив ваших змін."},+ "integrations": {+ "title": "Працює з інструментами, якими ви вже користуєтеся",+ "description": "Swetrix інтегрується з усім. Наш легкий скрипт займає лише кілька кілобайт у вашому вихідному коді. Ви можете додати його до будь-якої CMS, фреймворку або технології, якими ви вже користуєтеся.",+ "andMore": "+{{count}} більше"+ },"timeToDitchGoogleAnalytics": "Настав час <colour>позбутися</colour> Google Аналітики.","whyDitch": "Втомилися від розчарувань, складності та проблем з приватністю Google Аналітики? Ми також. Саме тому ми створили Swetrix - етичну, відкриту і повністю cookie-free альтернативу.","users": "Користувачів",