feat(welcome-page): Add viewed analytics event.

This commit is contained in:
Hristo Terezov 2019-11-28 14:03:34 +00:00
parent bcc1289a23
commit bbf33a8895
2 changed files with 3 additions and 0 deletions

View File

@ -101,6 +101,7 @@ export class AbstractWelcomePage extends Component<Props, *> {
*/
componentDidMount() {
this._mounted = true;
sendAnalytics(createWelcomePageEvent('viewed', undefined, { value: 1 }));
}
/**

View File

@ -116,6 +116,8 @@ class WelcomePage extends AbstractWelcomePage {
* @returns {void}
*/
componentDidMount() {
super.componentDidMount();
document.body.classList.add('welcome-page');
document.title = interfaceConfig.APP_NAME;