aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src
diff options
context:
space:
mode:
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),
};