(frontend) initialize posthog

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.
This commit is contained in:
lebaudantoine
2024-09-17 12:47:10 +02:00
committed by aleb_the_flash
parent f020979188
commit 11664956c7

View File

@@ -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)