aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-04 08:01:37 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-04 08:01:37 +0800
commit7a03df946dc86ad2b9cc86947cf61bc74dcfbf3c (patch)
tree4d5d7e4fbc7c5bd78c30fa1eede7c9f8e7fff46e /packages/instant/src/util
parente9fe7dcf54183416e114655595be4e565811d4ed (diff)
downloaddexon-sol-tools-7a03df946dc86ad2b9cc86947cf61bc74dcfbf3c.tar.gz
dexon-sol-tools-7a03df946dc86ad2b9cc86947cf61bc74dcfbf3c.tar.zst
dexon-sol-tools-7a03df946dc86ad2b9cc86947cf61bc74dcfbf3c.zip
feat(instant): Add eth balance, eth address, token symbol and decimals to event properties
Diffstat (limited to 'packages/instant/src/util')
-rw-r--r--packages/instant/src/util/analytics.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/instant/src/util/analytics.ts b/packages/instant/src/util/analytics.ts
index e625824ef..b632e8f1a 100644
--- a/packages/instant/src/util/analytics.ts
+++ b/packages/instant/src/util/analytics.ts
@@ -100,6 +100,8 @@ export interface AnalyticsUserOptions {
export interface AnalyticsEventOptions {
embeddedHost?: string;
embeddedUrl?: string;
+ ethBalanceInUnitAmount?: string;
+ ethAddress?: string;
networkId?: number;
providerName?: string;
gitSha?: string;
@@ -110,7 +112,9 @@ export interface AnalyticsEventOptions {
affiliateFeePercent?: number;
numberAvailableAssets?: number;
selectedAssetName?: string;
+ selectedAssetSymbol?: string;
selectedAssetData?: string;
+ selectedAssetDecimals?: number;
}
export enum TokenSelectorClosedVia {
ClickedX = 'Clicked X',