Add new action post hog
Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com>
This commit is contained in:
parent
3487fa90e0
commit
ecc6321e17
5 changed files with 38 additions and 0 deletions
|
@ -47,6 +47,7 @@ class AnalyticsClient {
|
|||
this.posthogPromise
|
||||
.then((posthog) => {
|
||||
posthog.capture("$pageView", { roomId, roomGroup });
|
||||
posthog.capture("enteredRoom");
|
||||
})
|
||||
.catch();
|
||||
}
|
||||
|
@ -74,5 +75,29 @@ class AnalyticsClient {
|
|||
})
|
||||
.catch();
|
||||
}
|
||||
|
||||
validationName() {
|
||||
this.posthogPromise
|
||||
.then((posthog) => {
|
||||
posthog.capture("wa-name-validation");
|
||||
})
|
||||
.catch();
|
||||
}
|
||||
|
||||
validationWoka(scene: string) {
|
||||
this.posthogPromise
|
||||
.then((posthog) => {
|
||||
posthog.capture("wa-woka-validation", { scene });
|
||||
})
|
||||
.catch();
|
||||
}
|
||||
|
||||
validationVideo() {
|
||||
this.posthogPromise
|
||||
.then((posthog) => {
|
||||
posthog.capture("wa-video-validation");
|
||||
})
|
||||
.catch();
|
||||
}
|
||||
}
|
||||
export const analyticsClient = new AnalyticsClient();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue