feat: Use amplitude for Cloud Analytics (#13217)

Migrates our analytics integration on Cloud from PostHog to Amplitude.
This change updates the core AnalyticsHelper class to use the Amplitude
SDK while maintaining the same tracking interface. Rest of all existing
analytics calls throughout the codebase continue to work without
modification.

**Changes:**
- Replace PostHog analytics with Amplitude SDK
- Rename ANALYTICS_TOKEN to CLOUD_ANALYTICS_TOKEN for clarity
- Fix bug in page() method signature that was causing malformed payloads
This commit is contained in:
Pranav
2026-01-09 09:32:09 -08:00
committed by GitHub
parent ded2f2751a
commit 837026c146
8 changed files with 178 additions and 105 deletions

View File

@@ -83,7 +83,7 @@
"mitt": "^3.0.1",
"opus-recorder": "^8.0.5",
"pinia": "^3.0.4",
"posthog-js": "^1.260.2",
"@amplitude/analytics-browser": "^2.11.10",
"qrcode": "^1.5.4",
"semver": "7.6.3",
"snakecase-keys": "^8.0.1",