From bbf33a889526c6dd517e212b3f5e8b378025011a Mon Sep 17 00:00:00 2001 From: Hristo Terezov Date: Thu, 28 Nov 2019 14:03:34 +0000 Subject: [PATCH] feat(welcome-page): Add viewed analytics event. --- react/features/welcome/components/AbstractWelcomePage.js | 1 + react/features/welcome/components/WelcomePage.web.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/react/features/welcome/components/AbstractWelcomePage.js b/react/features/welcome/components/AbstractWelcomePage.js index 5b741b895..37eec745f 100644 --- a/react/features/welcome/components/AbstractWelcomePage.js +++ b/react/features/welcome/components/AbstractWelcomePage.js @@ -101,6 +101,7 @@ export class AbstractWelcomePage extends Component { */ componentDidMount() { this._mounted = true; + sendAnalytics(createWelcomePageEvent('viewed', undefined, { value: 1 })); } /** diff --git a/react/features/welcome/components/WelcomePage.web.js b/react/features/welcome/components/WelcomePage.web.js index e3824b3d1..44e1b4e59 100644 --- a/react/features/welcome/components/WelcomePage.web.js +++ b/react/features/welcome/components/WelcomePage.web.js @@ -116,6 +116,8 @@ class WelcomePage extends AbstractWelcomePage { * @returns {void} */ componentDidMount() { + super.componentDidMount(); + document.body.classList.add('welcome-page'); document.title = interfaceConfig.APP_NAME;