Change onboarding_login_begin to welcome_screen_load

This commit is contained in:
James Salter 2021-07-21 16:09:22 +01:00
parent 5697eeaab8
commit 53b6749f73
2 changed files with 7 additions and 2 deletions

View file

@ -28,8 +28,8 @@ export interface IRoomEvent extends IPseudonymousEvent {
hashedRoomId: string
}
export interface IOnboardingLoginBegin extends IAnonymousEvent {
key: "onboarding_login_begin",
export interface IWelcomeScreenLoad extends IAnonymousEvent {
key: "welcome_screen_load",
}
const hashHex = async (input: string): Promise<string> => {

View file

@ -25,6 +25,7 @@ import SettingsStore from "../../../settings/SettingsStore";
import { UIFeature } from "../../../settings/UIFeature";
import CountlyAnalytics from "../../../CountlyAnalytics";
import { replaceableComponent } from "../../../utils/replaceableComponent";
import { getAnalytics } from "../../../PosthogAnalytics";
// translatable strings for Welcome pages
_td("Sign in with SSO");
@ -68,4 +69,8 @@ export default class Welcome extends React.PureComponent {
</AuthPage>
);
}
componentDidMount() {
getAnalytics().trackAnonymousEvent("welcome_screen_load", {});
}
}