aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-17 07:29:07 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-17 07:29:07 +0800
commite8be70da10c887956d6e200f7d551d3d7bbafb93 (patch)
treec2f6db1426702e42793d52ce50d841339c5544db /packages/instant/src
parent4d7bd15334f909765749fea1c67ad26b161d6025 (diff)
downloaddexon-sol-tools-e8be70da10c887956d6e200f7d551d3d7bbafb93.tar
dexon-sol-tools-e8be70da10c887956d6e200f7d551d3d7bbafb93.tar.gz
dexon-sol-tools-e8be70da10c887956d6e200f7d551d3d7bbafb93.tar.bz2
dexon-sol-tools-e8be70da10c887956d6e200f7d551d3d7bbafb93.tar.lz
dexon-sol-tools-e8be70da10c887956d6e200f7d551d3d7bbafb93.tar.xz
dexon-sol-tools-e8be70da10c887956d6e200f7d551d3d7bbafb93.tar.zst
dexon-sol-tools-e8be70da10c887956d6e200f7d551d3d7bbafb93.zip
Widget -> Instant
Diffstat (limited to 'packages/instant/src')
-rw-r--r--packages/instant/src/components/zero_ex_instant_provider.tsx2
-rw-r--r--packages/instant/src/util/analytics.ts2
2 files changed, 3 insertions, 1 deletions
diff --git a/packages/instant/src/components/zero_ex_instant_provider.tsx b/packages/instant/src/components/zero_ex_instant_provider.tsx
index 74e42bb40..1d5e7fe6f 100644
--- a/packages/instant/src/components/zero_ex_instant_provider.tsx
+++ b/packages/instant/src/components/zero_ex_instant_provider.tsx
@@ -132,7 +132,7 @@ export class ZeroExInstantProvider extends React.Component<ZeroExInstantProvider
gitSha: process.env.GIT_SHA,
npmVersion: process.env.NPM_PACKAGE_VERSION,
});
- analytics.trackWidgetOpened();
+ analytics.trackInstantOpened();
}
public componentWillUnmount(): void {
if (this._accountUpdateHeartbeat) {
diff --git a/packages/instant/src/util/analytics.ts b/packages/instant/src/util/analytics.ts
index b75665ff5..4c229be03 100644
--- a/packages/instant/src/util/analytics.ts
+++ b/packages/instant/src/util/analytics.ts
@@ -3,6 +3,7 @@ import { ObjectMap } from '@0x/types';
import { heapUtil } from './heap';
enum EventNames {
+ INSTANT_OPENED = 'Instant - Opened',
WALLET_READY = 'Wallet - Ready',
WIDGET_OPENED = 'Widget - Opened',
}
@@ -44,4 +45,5 @@ export const analytics = {
},
trackWalletReady: trackingEventFnWithoutPayload(EventNames.WALLET_READY),
trackWidgetOpened: trackingEventFnWithoutPayload(EventNames.WIDGET_OPENED),
+ trackInstantOpened: trackingEventFnWithoutPayload(EventNames.INSTANT_OPENED),
};