aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util/analytics.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve@0xproject.com>2018-12-05 09:20:58 +0800
committerGitHub <noreply@github.com>2018-12-05 09:20:58 +0800
commit4e7031e96d9f3b6548abfc58d06e94ebde102bcf (patch)
tree9d069c75154687ed5fe29d3b93a1e690ba2b86c2 /packages/instant/src/util/analytics.ts
parenta8a6baf964707e469c35c7ccab68262897facb8f (diff)
parent04226106a293f5e716bb3e268e89c7b231da96aa (diff)
downloaddexon-0x-contracts-4e7031e96d9f3b6548abfc58d06e94ebde102bcf.tar.gz
dexon-0x-contracts-4e7031e96d9f3b6548abfc58d06e94ebde102bcf.tar.zst
dexon-0x-contracts-4e7031e96d9f3b6548abfc58d06e94ebde102bcf.zip
Merge pull request #1371 from 0xProject/feature/instant/log-decimals-and-add-event-properties
feat(instant): More event properties for tracking
Diffstat (limited to 'packages/instant/src/util/analytics.ts')
-rw-r--r--packages/instant/src/util/analytics.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/instant/src/util/analytics.ts b/packages/instant/src/util/analytics.ts
index 760ec8b5c..3ab5c55fc 100644
--- a/packages/instant/src/util/analytics.ts
+++ b/packages/instant/src/util/analytics.ts
@@ -97,11 +97,13 @@ const buyQuoteEventProperties = (buyQuote: BuyQuote) => {
export interface AnalyticsUserOptions {
lastKnownEthAddress?: string;
- ethBalanceInUnitAmount?: string;
+ lastEthBalanceInUnitAmount?: string;
}
export interface AnalyticsEventOptions {
embeddedHost?: string;
embeddedUrl?: string;
+ ethBalanceInUnitAmount?: string;
+ ethAddress?: string;
networkId?: number;
providerName?: string;
gitSha?: string;
@@ -112,7 +114,9 @@ export interface AnalyticsEventOptions {
affiliateFeePercent?: number;
numberAvailableAssets?: number;
selectedAssetName?: string;
+ selectedAssetSymbol?: string;
selectedAssetData?: string;
+ selectedAssetDecimals?: number;
}
export enum TokenSelectorClosedVia {
ClickedX = 'Clicked X',