aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util/analytics.ts
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-11-22 07:18:31 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-11-27 06:48:07 +0800
commitfad48b8b6c5299b2fd3b8490779a538e1158f2dd (patch)
treed99a554203a73874aa56d508857c605bc5c72f90 /packages/instant/src/util/analytics.ts
parent685d83d6d0dc7998ce231e5106d74c0e16b17f34 (diff)
downloaddexon-sol-tools-fad48b8b6c5299b2fd3b8490779a538e1158f2dd.tar
dexon-sol-tools-fad48b8b6c5299b2fd3b8490779a538e1158f2dd.tar.gz
dexon-sol-tools-fad48b8b6c5299b2fd3b8490779a538e1158f2dd.tar.bz2
dexon-sol-tools-fad48b8b6c5299b2fd3b8490779a538e1158f2dd.tar.lz
dexon-sol-tools-fad48b8b6c5299b2fd3b8490779a538e1158f2dd.tar.xz
dexon-sol-tools-fad48b8b6c5299b2fd3b8490779a538e1158f2dd.tar.zst
dexon-sol-tools-fad48b8b6c5299b2fd3b8490779a538e1158f2dd.zip
feat(instant): add txHash to relevant buy events
Diffstat (limited to 'packages/instant/src/util/analytics.ts')
-rw-r--r--packages/instant/src/util/analytics.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/src/util/analytics.ts b/packages/instant/src/util/analytics.ts
index bd3a62ef8..5e55c8af3 100644
--- a/packages/instant/src/util/analytics.ts
+++ b/packages/instant/src/util/analytics.ts
@@ -78,7 +78,7 @@ export const analytics = {
trackBuyStarted: trackingEventFnWithoutPayload(EventNames.BUY_STARTED),
trackBuySignatureDenied: trackingEventFnWithoutPayload(EventNames.BUY_SIGNATURE_DENIED),
trackBuySimulationFailed: trackingEventFnWithoutPayload(EventNames.BUY_SIMULATION_FAILED),
- trackBuyTxSubmitted: trackingEventFnWithoutPayload(EventNames.BUY_TX_SUBMITTED),
- trackBuyTxSucceeded: trackingEventFnWithoutPayload(EventNames.BUY_TX_SUCCEEDED),
- trackBuyTxFailed: trackingEventFnWithoutPayload(EventNames.BUY_TX_FAILED),
+ trackBuyTxSubmitted: (txHash: string) => trackingEventFnWithPayload(EventNames.BUY_TX_SUBMITTED)({ txHash }),
+ trackBuyTxSucceeded: (txHash: string) => trackingEventFnWithPayload(EventNames.BUY_TX_SUCCEEDED)({ txHash }),
+ trackBuyTxFailed: (txHash: string) => trackingEventFnWithPayload(EventNames.BUY_TX_FAILED)({ txHash }),
};