feat: log walletDisplayName to Heap

This commit is contained in:
fragosti 2018-12-07 11:14:01 -08:00
parent aa4fcebdc7
commit 57dc5b6fc0
2 changed files with 4 additions and 0 deletions

View File

@ -119,6 +119,7 @@ export class ZeroExInstantProvider extends React.Component<ZeroExInstantProvider
this.props.orderSource,
state.providerState,
window,
state.walletDisplayName,
state.selectedAsset,
this.props.affiliateInfo,
),

View File

@ -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,