📈(frontend) add analytics tracking for connection events

Implement connection event tracking to monitor user connectivity
patterns and identify potential issues.
This commit is contained in:
lebaudantoine
2025-06-12 14:51:08 +02:00
committed by aleb_the_flash
parent bbb6e4f317
commit ef4dcf57b0

View File

@@ -18,6 +18,7 @@ export const useConnectionObserver = () => {
// total session duration from first connect to final disconnect.
if (connectionStartTimeRef.current != null) return
connectionStartTimeRef.current = Date.now()
posthog.capture('connection-event')
}
const handleReconnect = () => {