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

@@ -33,6 +33,7 @@ import { defaultHomeserver, defaultHomeserverHost } from "../matrix-utils";
import styles from "./LoginPage.module.css";
import { useInteractiveLogin } from "./useInteractiveLogin";
import { usePageTitle } from "../usePageTitle";
import { PosthogAnalytics } from "../PosthogAnalytics";
export const LoginPage: FC = () => {
const { t } = useTranslation();
@@ -64,6 +65,7 @@ export const LoginPage: FC = () => {
} else {
history.push("/");
}
PosthogAnalytics.instance.eventLogin.track();
})
.catch((error) => {
setError(error);