aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util/analytics.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-27 05:26:29 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-27 05:27:40 +0800
commit9206f2d288f33367877d2d557d50f1d485d4b92e (patch)
tree393661927c961ea5b4f9d69718c31c2c4d49ad17 /packages/instant/src/util/analytics.ts
parent2fec7613c408a046c130f4c5817696ab3b5e3928 (diff)
downloaddexon-sol-tools-9206f2d288f33367877d2d557d50f1d485d4b92e.tar
dexon-sol-tools-9206f2d288f33367877d2d557d50f1d485d4b92e.tar.gz
dexon-sol-tools-9206f2d288f33367877d2d557d50f1d485d4b92e.tar.bz2
dexon-sol-tools-9206f2d288f33367877d2d557d50f1d485d4b92e.tar.lz
dexon-sol-tools-9206f2d288f33367877d2d557d50f1d485d4b92e.tar.xz
dexon-sol-tools-9206f2d288f33367877d2d557d50f1d485d4b92e.tar.zst
dexon-sol-tools-9206f2d288f33367877d2d557d50f1d485d4b92e.zip
Token selector searched
Diffstat (limited to 'packages/instant/src/util/analytics.ts')
-rw-r--r--packages/instant/src/util/analytics.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/instant/src/util/analytics.ts b/packages/instant/src/util/analytics.ts
index 50bab174f..cd1074cba 100644
--- a/packages/instant/src/util/analytics.ts
+++ b/packages/instant/src/util/analytics.ts
@@ -21,6 +21,7 @@ enum EventNames {
TOKEN_SELECTOR_OPENED = 'Token Selector - Opened',
TOKEN_SELECTOR_CLOSED = 'Token Selector - Closed',
TOKEN_SELECTOR_CHOSE = 'Token Selector - Chose',
+ TOKEN_SELECTOR_SEARCHED = 'Token Selector - Searched',
}
const track = (eventName: EventNames, eventProperties: EventProperties = {}): void => {
evaluateIfEnabled(() => {
@@ -74,4 +75,6 @@ export const analytics = {
trackTokenSelectorClosed: trackingEventFnWithoutPayload(EventNames.TOKEN_SELECTOR_CLOSED),
trackTokenSelectorChose: (payload: { assetName: string; assetData: string }) =>
trackingEventFnWithPayload(EventNames.TOKEN_SELECTOR_CHOSE)(payload),
+ trackTokenSelectorSearched: (searchText: string) =>
+ trackingEventFnWithPayload(EventNames.TOKEN_SELECTOR_SEARCHED)({ searchText }),
};