From 11664956c7b9fd6b9117493580b2b3a567ca37fa Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Tue, 17 Sep 2024 12:47:10 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(frontend)=20initialize=20posthog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Initialize Posthog script with our project's keys. This key is public, it's not a secret. Our data is hosted in Europe, followed Tchap integration, which was reviewed by the ANSI. --- src/frontend/src/App.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/frontend/src/App.tsx b/src/frontend/src/App.tsx index f524befe..d5932a5d 100644 --- a/src/frontend/src/App.tsx +++ b/src/frontend/src/App.tsx @@ -13,11 +13,17 @@ import { routes } from './routes' import './i18n/init' import { silenceLiveKitLogs } from '@/utils/livekit.ts' import { queryClient } from '@/api/queryClient' +import posthog from 'posthog-js' function App() { const { i18n } = useTranslation() useLang(i18n.language) + posthog.init('phc_RPYko028Oqtj0c9exLIWwrlrjLxSdxT0ntW0Lam4iom', { + api_host: 'https://eu.i.posthog.com', + person_profiles: 'always', + }) + const isProduction = import.meta.env.PROD silenceLiveKitLogs(isProduction)