feat: integrate PostHog analytics for frontend and PWA
- Install posthog-js and @posthog/react packages - Add PostHogProvider wrapper in main.tsx for both apps - Configure PostHog with EU instance and 2026-01-30 defaults - Add environment variables for API key and host - Update docker-compose.coolify.yml with PostHog build args
This commit is contained in:
1 parent
64588935ca
commit
b9a4a45781
9 files changed
+1008
-185
No files matched your search
@@ -11,3 +11,7 @@ VITE_API_URL=http://localhost:3000/api/v1
|
||||
|
||||
# ===== COMMON =====
|
||||
VITE_CMS_URL=http://localhost:1337
|
||||
|
||||
# ===== POSTHOG ANALYTICS =====
|
||||
VITE_PUBLIC_POSTHOG_KEY=phc_kuDGT1kUmJmijLRjiQaKWIaU4JBdFW0aELW2hIGlBXR
|
||||
VITE_PUBLIC_POSTHOG_HOST=https://eu.i.posthog.com
|
||||
Reference in new issue
Block a user