aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-07-14 05:09:34 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-07-14 05:09:34 +0800
commit5e4b1eed3067208fecdd5c10f1c1cc16f6b4647b (patch)
treeaa3f890304da92f0c46158297ca8a9683d7bb65c /packages
parentab5cd95cccff7b776d168036394203261b354aae (diff)
downloaddexon-0x-contracts-5e4b1eed3067208fecdd5c10f1c1cc16f6b4647b.tar
dexon-0x-contracts-5e4b1eed3067208fecdd5c10f1c1cc16f6b4647b.tar.gz
dexon-0x-contracts-5e4b1eed3067208fecdd5c10f1c1cc16f6b4647b.tar.bz2
dexon-0x-contracts-5e4b1eed3067208fecdd5c10f1c1cc16f6b4647b.tar.lz
dexon-0x-contracts-5e4b1eed3067208fecdd5c10f1c1cc16f6b4647b.tar.xz
dexon-0x-contracts-5e4b1eed3067208fecdd5c10f1c1cc16f6b4647b.tar.zst
dexon-0x-contracts-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.tsx3
-rw-r--r--packages/website/ts/redux/analyticsMiddleware.ts5
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;
}