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, this.props.orderSource,
state.providerState, state.providerState,
window, window,
state.walletDisplayName,
state.selectedAsset, state.selectedAsset,
this.props.affiliateInfo, this.props.affiliateInfo,
), ),

View File

@ -106,6 +106,7 @@ export interface AnalyticsEventOptions {
ethAddress?: string; ethAddress?: string;
networkId?: number; networkId?: number;
providerName?: string; providerName?: string;
walletDisplayName?: string;
gitSha?: string; gitSha?: string;
npmVersion?: string; npmVersion?: string;
instantEnvironment?: string; instantEnvironment?: string;
@ -138,6 +139,7 @@ export const analytics = {
orderSource: OrderSource, orderSource: OrderSource,
providerState: ProviderState, providerState: ProviderState,
window: Window, window: Window,
walletDisplayName?: string,
selectedAsset?: Asset, selectedAsset?: Asset,
affiliateInfo?: AffiliateInfo, affiliateInfo?: AffiliateInfo,
): AnalyticsEventOptions => { ): AnalyticsEventOptions => {
@ -149,6 +151,7 @@ export const analytics = {
embeddedUrl: window.location.href, embeddedUrl: window.location.href,
networkId: network, networkId: network,
providerName: providerState.name, providerName: providerState.name,
walletDisplayName,
gitSha: GIT_SHA, gitSha: GIT_SHA,
npmVersion: NPM_PACKAGE_VERSION, npmVersion: NPM_PACKAGE_VERSION,
orderSource: orderSourceName, orderSource: orderSourceName,