Merge branch 'develop' of github.com:thecodingmachine/workadventure into end-to-end-tests

# Conflicts:
#	front/src/Administration/AnalyticsClient.ts
This commit is contained in:
David Négrier 2021-11-24 11:01:50 +01:00
commit 550ffaf8a8
5 changed files with 35 additions and 0 deletions

View file

@ -42,6 +42,7 @@ class AnalyticsClient {
this.posthogPromise
?.then((posthog) => {
posthog.capture("$pageView", { roomId, roomGroup });
posthog.capture("enteredRoom");
});
}
@ -65,5 +66,26 @@ class AnalyticsClient {
posthog.capture("wa-entered-jitsi", { roomName, roomId });
});
}
validationName() {
this.posthogPromise
?.then((posthog) => {
posthog.capture("wa-name-validation");
});
}
validationWoka(scene: string) {
this.posthogPromise
?.then((posthog) => {
posthog.capture("wa-woka-validation", { scene });
});
}
validationVideo() {
this.posthogPromise
?.then((posthog) => {
posthog.capture("wa-video-validation");
});
}
}
export const analyticsClient = new AnalyticsClient();