aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-12-08 03:14:01 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-13 01:19:31 +0800
commitb59f20482ee7c4e6b5fef530957442ca54c6c6dd (patch)
treecf708e54952ce9964f6004bf7d76ddc59da3e2ed
parent98aa7a2c548cf11957c5ff702baa2edb1d985a90 (diff)
downloaddexon-sol-tools-b59f20482ee7c4e6b5fef530957442ca54c6c6dd.tar
dexon-sol-tools-b59f20482ee7c4e6b5fef530957442ca54c6c6dd.tar.gz
dexon-sol-tools-b59f20482ee7c4e6b5fef530957442ca54c6c6dd.tar.bz2
dexon-sol-tools-b59f20482ee7c4e6b5fef530957442ca54c6c6dd.tar.lz
dexon-sol-tools-b59f20482ee7c4e6b5fef530957442ca54c6c6dd.tar.xz
dexon-sol-tools-b59f20482ee7c4e6b5fef530957442ca54c6c6dd.tar.zst
dexon-sol-tools-b59f20482ee7c4e6b5fef530957442ca54c6c6dd.zip
feat: log walletDisplayName to Heap
-rw-r--r--packages/instant/src/components/zero_ex_instant_provider.tsx1
-rw-r--r--packages/instant/src/util/analytics.ts3
2 files changed, 4 insertions, 0 deletions
diff --git a/packages/instant/src/components/zero_ex_instant_provider.tsx b/packages/instant/src/components/zero_ex_instant_provider.tsx
index 7ae27de23..4012af646 100644
--- a/packages/instant/src/components/zero_ex_instant_provider.tsx
+++ b/packages/instant/src/components/zero_ex_instant_provider.tsx
@@ -119,6 +119,7 @@ export class ZeroExInstantProvider extends React.Component<ZeroExInstantProvider
this.props.orderSource,
state.providerState,
window,
+ state.walletDisplayName,
state.selectedAsset,
this.props.affiliateInfo,
),
diff --git a/packages/instant/src/util/analytics.ts b/packages/instant/src/util/analytics.ts
index 6da52db16..584f37b75 100644
--- a/packages/instant/src/util/analytics.ts
+++ b/packages/instant/src/util/analytics.ts
@@ -106,6 +106,7 @@ export interface AnalyticsEventOptions {
ethAddress?: string;
networkId?: number;
providerName?: string;
+ walletDisplayName?: string;
gitSha?: string;
npmVersion?: string;
instantEnvironment?: string;
@@ -138,6 +139,7 @@ export const analytics = {
orderSource: OrderSource,
providerState: ProviderState,
window: Window,
+ walletDisplayName?: string,
selectedAsset?: Asset,
affiliateInfo?: AffiliateInfo,
): AnalyticsEventOptions => {
@@ -149,6 +151,7 @@ export const analytics = {
embeddedUrl: window.location.href,
networkId: network,
providerName: providerState.name,
+ walletDisplayName,
gitSha: GIT_SHA,
npmVersion: NPM_PACKAGE_VERSION,
orderSource: orderSourceName,