aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-12-08 03:14:01 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-12-08 03:14:01 +0800
commit57dc5b6fc086762d9cfedfc8adbfa55adf77fd73 (patch)
treeafc93ca713f7e11b4f516f57e4b25ffe0ae7c8c8 /packages/instant
parentaa4fcebdc71fa58b12dc12ab03d7697444416c09 (diff)
downloaddexon-sol-tools-57dc5b6fc086762d9cfedfc8adbfa55adf77fd73.tar
dexon-sol-tools-57dc5b6fc086762d9cfedfc8adbfa55adf77fd73.tar.gz
dexon-sol-tools-57dc5b6fc086762d9cfedfc8adbfa55adf77fd73.tar.bz2
dexon-sol-tools-57dc5b6fc086762d9cfedfc8adbfa55adf77fd73.tar.lz
dexon-sol-tools-57dc5b6fc086762d9cfedfc8adbfa55adf77fd73.tar.xz
dexon-sol-tools-57dc5b6fc086762d9cfedfc8adbfa55adf77fd73.tar.zst
dexon-sol-tools-57dc5b6fc086762d9cfedfc8adbfa55adf77fd73.zip
feat: log walletDisplayName to Heap
Diffstat (limited to 'packages/instant')
-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,