diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-17 07:29:07 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-17 07:29:07 +0800 |
commit | e8be70da10c887956d6e200f7d551d3d7bbafb93 (patch) | |
tree | c2f6db1426702e42793d52ce50d841339c5544db /packages/instant | |
parent | 4d7bd15334f909765749fea1c67ad26b161d6025 (diff) | |
download | dexon-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')
-rw-r--r-- | packages/instant/src/components/zero_ex_instant_provider.tsx | 2 | ||||
-rw-r--r-- | packages/instant/src/util/analytics.ts | 2 |
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), }; |