📈 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
added public dashboard link
Blue Mouse602c674441df
diff --git a/public/locales/en.json b/public/locales/en.jsonindex f7af9d830..6f28c66f7 100644--- a/public/locales/en.json+++ b/public/locales/en.json@@ -780,7 +780,8 @@},"usage": {"title": "Usage metrics",- "desc": "Our user metrics, such as amount of active users, connected websites."+ "desc": "Our user metrics, such as amount of active users, connected websites.",+ "live": "You can see our live metrics on our <livedemo>public dashboard</livedemo>. You can also make your own Swetrix Dashboards public and adjust them to your needs."}},"titles": {diff --git a/src/pages/MainPage/index.tsx b/src/pages/MainPage/index.tsxindex adc68d9e2..644193157 100644--- a/src/pages/MainPage/index.tsx+++ b/src/pages/MainPage/index.tsx@@ -15,7 +15,7 @@ import _isEmpty from 'lodash/isEmpty'import routes from 'routes'import { nFormatterSeparated } from 'utils/generic'import Title from 'components/Title'-import { GITHUB_URL, MARKETPLACE_URL } from 'redux/constants'+import { GITHUB_URL, MARKETPLACE_URL, LIVE_DEMO_URL } from 'redux/constants'import { StateType } from 'redux/store/index'import BackgroundSvg from 'ui/icons/BackgroundSvg'import Webflow from 'ui/icons/Webflow'@@ -37,8 +37,6 @@ import Pricing from './Pricing'import './styles.css'-const LIVE_DEMO_URL = '/projects/STEzHcB1rALV'-const COMPETITORS_LIST = ['Google Analytics', 'Fathom', 'Plausible', 'Simple Analytics']const SWETRIX_AND_COMPETITORS_LIST = ['Swetrix', ...COMPETITORS_LIST]const COMPETITOR_SEQUENCE_DELAY = 5000 // in millisecondsdiff --git a/src/pages/OpenStartup/index.tsx b/src/pages/OpenStartup/index.tsxindex efd46357e..80e9197ac 100644--- a/src/pages/OpenStartup/index.tsx+++ b/src/pages/OpenStartup/index.tsx@@ -4,12 +4,15 @@ import _map from 'lodash/map'import bb, {bar, line,} from 'billboard.js'-import { useTranslation } from 'react-i18next'+import { useTranslation, Trans } from 'react-i18next'+import { Link } from 'react-router-dom'import { useSelector } from 'react-redux'import { nFormatterSeparated } from 'utils/generic'import { StateType } from 'redux/store/index'import Title from 'components/Title'+import { LIVE_DEMO_URL } from 'redux/constants'+import routes from 'routes'import '../Project/View/styles.css'// This should be generated on the API side, will be done later.@@ -236,9 +239,7 @@ const getSettings = () => {}const OpenStartup = (): JSX.Element => {- const { t }: {- t: (key: string) => string- } = useTranslation('common')+ const { t }: any = useTranslation('common')const { stats } = useSelector((state: StateType) => state.ui.misc)const events = nFormatterSeparated(Number(stats.pageviews), 2)@@ -323,6 +324,16 @@ const OpenStartup = (): JSX.Element => {</span>)}</p>++ <p className='mt-2 text-lg text-gray-900 dark:text-gray-50 tracking-tight'>+ <Trans+ t={t}+ i18nKey='open.usage.live'+ components={{+ livedemo: <Link to={LIVE_DEMO_URL} className='font-medium hover:underline text-indigo-600 hover:text-indigo-500 dark:text-indigo-400 dark:hover:text-indigo-500' />,+ }}+ />+ </p></div></div></Title>diff --git a/src/redux/constants/index.ts b/src/redux/constants/index.tsindex 254586bd5..e2cf7d814 100644--- a/src/redux/constants/index.ts+++ b/src/redux/constants/index.ts@@ -166,6 +166,7 @@ export const DISCORD_URL: string = 'https://discord.gg/tVxGxU3s4B'export const STATUSPAGE_URL: string = 'https://stats.uptimerobot.com/33rvmiXXEz'export const BLOG_URL: string = 'https://blog.swetrix.com'export const UTM_GENERATOR_URL: string = 'https://url.swetrix.com'+export const LIVE_DEMO_URL: string = '/projects/STEzHcB1rALV'export const MARKETPLACE_URL: string = 'https://marketplace.swetrix.com'export const DOCS_URL: string = 'https://docs.swetrix.com'export const CAPTCHA_URL: string = 'https://captcha.swetrix.com'