docs/self-hosting/environment-variables/analytics.mdx
We have integrated several free/open-source data analytics services in LobeHub for collecting user usage data. Here are environment variables that you can use.
ENABLE_VERCEL_ANALYTICS1 to enable Vercel Analytics.-1DEBUG_VERCEL_ANALYTICS-1GOOGLE_ANALYTICS_MEASUREMENT_ID-G-63LP2TV03TPOSTHOG_KEY-phc_xxxxxxxxPOSTHOG_HOSThttps://app.posthog.comhttps://example.comDEBUG_POSTHOG_ANALYTICS-1UMAMI_WEBSITE_ID-E738D82A-EE9E-4806-A81F-0CA3CAE57F65UMAMI_SCRIPT_URLhttps://analytics.umami.is/script.jshttps://umami.your-site.com/script.jsLangfuse is an open-source LLM Observability platform. By enabling the Langfuse integration, you can trace your chat data with Langfuse to develop, monitor, and evaluate the use of your LobeHub.
ENABLE_LANGFUSE11LANGFUSE_SECRET_KEYsk-lf-...LANGFUSE_PUBLIC_KEYpk-lf-...LANGFUSE_HOSThttps://us.cloud.langfuse.com if your Langfuse project is in the US data region.https://cloud.langfuse.comhttps://cloud.langfuse.com