From ef4dcf57b07828414a0aed6c3e2b9eb9df94a1ff Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Thu, 12 Jun 2025 14:51:08 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=88(frontend)=20add=20analytics=20trac?= =?UTF-8?q?king=20for=20connection=20events?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implement connection event tracking to monitor user connectivity patterns and identify potential issues. --- .../src/features/rooms/livekit/hooks/useConnectionObserver.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/src/features/rooms/livekit/hooks/useConnectionObserver.ts b/src/frontend/src/features/rooms/livekit/hooks/useConnectionObserver.ts index 6042d0db..740ca78c 100644 --- a/src/frontend/src/features/rooms/livekit/hooks/useConnectionObserver.ts +++ b/src/frontend/src/features/rooms/livekit/hooks/useConnectionObserver.ts @@ -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 = () => {