diff options
author | Francesco Agosti <francesco.agosti93@gmail.com> | 2018-07-14 05:34:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-14 05:34:54 +0800 |
commit | 6bdee26c3037733ad198d54c1e88f3c7647ad230 (patch) | |
tree | aa3f890304da92f0c46158297ca8a9683d7bb65c | |
parent | ab5cd95cccff7b776d168036394203261b354aae (diff) | |
parent | 5e4b1eed3067208fecdd5c10f1c1cc16f6b4647b (diff) | |
download | dexon-0x-contracts-6bdee26c3037733ad198d54c1e88f3c7647ad230.tar.gz dexon-0x-contracts-6bdee26c3037733ad198d54c1e88f3c7647ad230.tar.zst dexon-0x-contracts-6bdee26c3037733ad198d54c1e88f3c7647ad230.zip |
Merge pull request #876 from 0xProject/feature/website/heap-tracking-sanity
Move update onboarding step tracking to onboarding flow code
-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; } |