From 4919410ff0194de88cef2be9ed791b2931f95e76 Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 5 Mar 2025 08:03:22 -0500 Subject: [PATCH] Don't reset analytics ID when leaving calls We shouldn't be calling PosthogAnalytics.instance.logout() when leaving the call in widget mode, because all this does is reset your analytics ID. In the big picture this is probably inflating our user count metrics. --- src/rtcSessionHelpers.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/rtcSessionHelpers.ts b/src/rtcSessionHelpers.ts index 719af998..30809730 100644 --- a/src/rtcSessionHelpers.ts +++ b/src/rtcSessionHelpers.ts @@ -156,7 +156,6 @@ const widgetPostHangupProcedure = async ( logger.error("Failed to send close action", e); } widget.api.transport.stop(); - PosthogAnalytics.instance.logout(); } };