Change onboarding_login_begin to welcome_screen_load

pull/21833/head
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 hashedRoomId: string
} }
export interface IOnboardingLoginBegin extends IAnonymousEvent { export interface IWelcomeScreenLoad extends IAnonymousEvent {
key: "onboarding_login_begin", key: "welcome_screen_load",
} }
const hashHex = async (input: string): Promise<string> => { const hashHex = async (input: string): Promise<string> => {

View File

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