aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/portal
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-07-12 03:14:23 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-07-12 03:14:23 +0800
commit9131a72a47690912db9b536186d05120daabd115 (patch)
treeedbf0fb3b572a9422410b6fac9f47c103c1c0218 /packages/website/ts/components/portal
parentd319b53e23047d4ff62415555475ef6da5f3d774 (diff)
downloaddexon-sol-tools-9131a72a47690912db9b536186d05120daabd115.tar.gz
dexon-sol-tools-9131a72a47690912db9b536186d05120daabd115.tar.zst
dexon-sol-tools-9131a72a47690912db9b536186d05120daabd115.zip
Replace calls to google analytics with calls to heap
Diffstat (limited to 'packages/website/ts/components/portal')
-rw-r--r--packages/website/ts/components/portal/portal.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/website/ts/components/portal/portal.tsx b/packages/website/ts/components/portal/portal.tsx
index f983241fa..2e02f42f6 100644
--- a/packages/website/ts/components/portal/portal.tsx
+++ b/packages/website/ts/components/portal/portal.tsx
@@ -390,8 +390,10 @@ export class Portal extends React.Component<PortalProps, PortalState> {
}
private _startOnboarding(): void {
- const networkName = sharedConstants.NETWORK_NAME_BY_ID[this.props.networkId];
- analytics.logEvent('Portal', 'Onboarding Started - Manual', networkName, this.props.portalOnboardingStep);
+ analytics.track('Onboarding Started', {
+ reason: 'manual',
+ stepIndex: this.props.portalOnboardingStep,
+ });
this.props.dispatcher.updatePortalOnboardingShowing(true);
}
private _renderWalletSection(): React.ReactNode {