Add posthog Telemetry (Anonymity Logic + call duration telemetry) (#658)

Co-authored-by: Timo K <timok@element.io>
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Timo
2022-11-04 13:07:14 +01:00
committed by GitHub
parent d5326ed9ee
commit 72503d0335
14 changed files with 574 additions and 7 deletions

View File

@@ -39,6 +39,7 @@ import { LoadingView } from "../FullScreenView";
import { useRecaptcha } from "./useRecaptcha";
import { Caption, Link } from "../typography/Typography";
import { usePageTitle } from "../usePageTitle";
import { PosthogAnalytics } from "../PosthogAnalytics";
export const RegisterPage: FC = () => {
const { t } = useTranslation();
@@ -98,6 +99,7 @@ export const RegisterPage: FC = () => {
}
setClient(newClient, session);
PosthogAnalytics.instance.eventSignup.cacheSignupEnd(new Date());
};
submit()
@@ -142,6 +144,8 @@ export const RegisterPage: FC = () => {
if (loading) {
return <LoadingView />;
} else {
PosthogAnalytics.instance.eventSignup.cacheSignupStart(new Date());
}
return (