From cb648b8569203dedef3716f175499f8178f275fa Mon Sep 17 00:00:00 2001 From: Anastasia Poupeney Date: Thu, 28 Jun 2018 10:11:03 +0200 Subject: [PATCH] capture some events on the onboarding for analytics --- src/components/Onboarding/steps/Analytics.js | 17 +++++++++++++++++ .../GenuineCheck/GenuineCheckUnavailable.js | 2 +- src/components/Onboarding/steps/SetPassword.js | 9 ++++++++- src/components/SettingsPage/sections/Profile.js | 5 ++++- src/middlewares/analytics.js | 4 +++- 5 files changed, 33 insertions(+), 4 deletions(-) diff --git a/src/components/Onboarding/steps/Analytics.js b/src/components/Onboarding/steps/Analytics.js index dffd21f7..bfd63e00 100644 --- a/src/components/Onboarding/steps/Analytics.js +++ b/src/components/Onboarding/steps/Analytics.js @@ -7,6 +7,7 @@ import { saveSettings } from 'actions/settings' import Box from 'components/base/Box' import CheckBox from 'components/base/CheckBox' import TrackPage from 'analytics/TrackPage' +import Track from 'analytics/Track' import { Title, Description, FixedTopContainer, StepContainerInner } from '../helperComponents' import OnboardingFooter from '../OnboardingFooter' @@ -68,6 +69,14 @@ class Analytics extends PureComponent { {t('onboarding:analytics.sentryLogs.desc')} + @@ -77,6 +86,14 @@ class Analytics extends PureComponent { {t('onboarding:analytics.shareAnalytics.desc')} + diff --git a/src/components/Onboarding/steps/GenuineCheck/GenuineCheckUnavailable.js b/src/components/Onboarding/steps/GenuineCheck/GenuineCheckUnavailable.js index 52de6111..11d639cd 100644 --- a/src/components/Onboarding/steps/GenuineCheck/GenuineCheckUnavailable.js +++ b/src/components/Onboarding/steps/GenuineCheck/GenuineCheckUnavailable.js @@ -36,7 +36,7 @@ export function GenuineCheckUnavailableFooter({ -