diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-07-14 05:09:34 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-07-14 05:09:34 +0800 |
commit | 5e4b1eed3067208fecdd5c10f1c1cc16f6b4647b (patch) | |
tree | aa3f890304da92f0c46158297ca8a9683d7bb65c /packages | |
parent | ab5cd95cccff7b776d168036394203261b354aae (diff) | |
download | dexon-sol-tools-5e4b1eed3067208fecdd5c10f1c1cc16f6b4647b.tar dexon-sol-tools-5e4b1eed3067208fecdd5c10f1c1cc16f6b4647b.tar.gz dexon-sol-tools-5e4b1eed3067208fecdd5c10f1c1cc16f6b4647b.tar.bz2 dexon-sol-tools-5e4b1eed3067208fecdd5c10f1c1cc16f6b4647b.tar.lz dexon-sol-tools-5e4b1eed3067208fecdd5c10f1c1cc16f6b4647b.tar.xz dexon-sol-tools-5e4b1eed3067208fecdd5c10f1c1cc16f6b4647b.tar.zst dexon-sol-tools-5e4b1eed3067208fecdd5c10f1c1cc16f6b4647b.zip |
Move update onboarding step tracking to onboarding flow code
Diffstat (limited to 'packages')
-rw-r--r-- | packages/website/ts/components/onboarding/portal_onboarding_flow.tsx | 3 | ||||
-rw-r--r-- | packages/website/ts/redux/analyticsMiddleware.ts | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx index a51170735..f395674a1 100644 --- a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx +++ b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx @@ -233,6 +233,9 @@ class PlainPortalOnboardingFlow extends React.Component<PortalOnboardingFlowProp } private _updateOnboardingStep(stepIndex: number): void { this.props.updateOnboardingStep(stepIndex); + analytics.track('Update Onboarding Step', { + stepIndex, + }); } private _closeOnboarding(): void { this.props.updateIsRunning(false); diff --git a/packages/website/ts/redux/analyticsMiddleware.ts b/packages/website/ts/redux/analyticsMiddleware.ts index 1ef9b6ad7..51d39a5d7 100644 --- a/packages/website/ts/redux/analyticsMiddleware.ts +++ b/packages/website/ts/redux/analyticsMiddleware.ts @@ -29,11 +29,6 @@ export const analyticsMiddleware: Middleware = store => next => action => { }); } break; - case ActionTypes.UpdatePortalOnboardingStep: - analytics.track('Update Onboarding Step', { - stepIndex: nextState.portalOnboardingStep, - }); - break; default: break; } |