From c181d250ac94b59aa932e1d4eacb82c6d999c99f Mon Sep 17 00:00:00 2001 From: Robin Townsend Date: Fri, 23 Jun 2023 14:47:32 -0400 Subject: [PATCH] Note the call backend in rageshake and analytics data --- README.md | 1 + src/analytics/PosthogAnalytics.ts | 2 ++ src/settings/submit-rageshake.ts | 1 + 3 files changed, 4 insertions(+) diff --git a/README.md b/README.md index b683605..8210bf7 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,7 @@ Add SFU parameter in your local config `./public/config.yml`: ``` Run backend components: + ``` yarn backend ``` diff --git a/src/analytics/PosthogAnalytics.ts b/src/analytics/PosthogAnalytics.ts index fad315b..9397eb8 100644 --- a/src/analytics/PosthogAnalytics.ts +++ b/src/analytics/PosthogAnalytics.ts @@ -70,6 +70,7 @@ export enum RegistrationType { interface PlatformProperties { appVersion: string; matrixBackend: "embedded" | "jssdk"; + callBackend: "livekit" | "full-mesh"; } interface PosthogSettings { @@ -191,6 +192,7 @@ export class PosthogAnalytics { return { appVersion, matrixBackend: widget ? "embedded" : "jssdk", + callBackend: "livekit", }; } diff --git a/src/settings/submit-rageshake.ts b/src/settings/submit-rageshake.ts index 050f782..e5200c3 100644 --- a/src/settings/submit-rageshake.ts +++ b/src/settings/submit-rageshake.ts @@ -101,6 +101,7 @@ export function useSubmitRageshake(): { body.append("user_agent", userAgent); body.append("installed_pwa", "false"); body.append("touch_input", touchInput); + body.append("call_backend", "livekit"); if (client) { const userId = client.getUserId();