📈(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:
committed by
aleb_the_flash
parent
bbb6e4f317
commit
ef4dcf57b0
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user