📈 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 number of total users
Blue Mouse3cd3a5a76b47
diff --git a/web/app/api/api.server.ts b/web/app/api/api.server.tsindex 463f93157..3562d028f 100644--- a/web/app/api/api.server.ts+++ b/web/app/api/api.server.ts@@ -570,16 +570,8 @@ export async function authMeServer(// MARK: General Stats API// ============================================================================-interface GeneralStats {- users: number- projects: number- events: number-}--export async function getGeneralStats(- request: Request,-): Promise<GeneralStats | null> {- const result = await serverFetch<GeneralStats>(request, 'log/generalStats', {+export async function getGeneralStats(request: Request): Promise<Stats | null> {+ const result = await serverFetch<Stats>(request, 'log/generalStats', {skipAuth: true,})@@ -2030,6 +2022,7 @@ export async function generateSSOAuthURLServer(export type { SSOHashSuccessResponse, SSOHashResponse } from '~/lib/models/Auth'import type { SSOHashSuccessResponse, SSOHashResponse } from '~/lib/models/Auth'+import { Stats } from '~/lib/models/Stats'export async function getJWTBySSOHashServer(request: Request,diff --git a/web/app/lib/models/Stats.ts b/web/app/lib/models/Stats.tsindex 81145139a..fb9929cf1 100644--- a/web/app/lib/models/Stats.ts+++ b/web/app/lib/models/Stats.ts@@ -1,5 +1,6 @@export interface Stats {users: number+ trials: numberprojects: numberevents: number}diff --git a/web/app/routes/_index.tsx b/web/app/routes/_index.tsxindex 9076b6e87..1cb5d932e 100644--- a/web/app/routes/_index.tsx+++ b/web/app/routes/_index.tsx@@ -290,7 +290,7 @@ const Testimonials = ({<div className='text-base text-gray-900/70 dark:text-gray-200'><Transvalues={{- amount: stats?.users || '> 1000',+ amount: stats?.trials || '> 1000',}}t={t}i18nKey='main.understandTheirUsers'