diff options
author | Steve Klebanoff <steve@0xproject.com> | 2018-11-28 05:31:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-28 05:31:02 +0800 |
commit | 47a87e57f1cfa82375c87829320f30049217d657 (patch) | |
tree | fbe4f4fec6da100bad3b90dd36a685c0392c385b /packages/instant/src/util/analytics.ts | |
parent | 768c28f328b2a155f90c13d45546470337a04775 (diff) | |
parent | 96a46bcb4b78744be08da9b957339802b8ba14fa (diff) | |
download | dexon-sol-tools-47a87e57f1cfa82375c87829320f30049217d657.tar dexon-sol-tools-47a87e57f1cfa82375c87829320f30049217d657.tar.gz dexon-sol-tools-47a87e57f1cfa82375c87829320f30049217d657.tar.bz2 dexon-sol-tools-47a87e57f1cfa82375c87829320f30049217d657.tar.lz dexon-sol-tools-47a87e57f1cfa82375c87829320f30049217d657.tar.xz dexon-sol-tools-47a87e57f1cfa82375c87829320f30049217d657.tar.zst dexon-sol-tools-47a87e57f1cfa82375c87829320f30049217d657.zip |
Merge pull request #1335 from 0xProject/feature/instant/dropdown-analytics
[instant] Add analytics events for payment dropdown
Diffstat (limited to 'packages/instant/src/util/analytics.ts')
-rw-r--r-- | packages/instant/src/util/analytics.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/instant/src/util/analytics.ts b/packages/instant/src/util/analytics.ts index 2bb974254..5bc9bb385 100644 --- a/packages/instant/src/util/analytics.ts +++ b/packages/instant/src/util/analytics.ts @@ -23,6 +23,9 @@ enum EventNames { ACCOUNT_UNLOCK_REQUESTED = 'Account - Unlock Requested', ACCOUNT_UNLOCK_DENIED = 'Account - Unlock Denied', ACCOUNT_ADDRESS_CHANGED = 'Account - Address Changed', + PAYMENT_METHOD_DROPDOWN_OPENED = 'Payment Method - Dropdown Opened', + PAYMENT_METHOD_OPENED_ETHERSCAN = 'Payment Method - Opened Etherscan', + PAYMENT_METHOD_COPIED_ADDRESS = 'Payment Method - Copied Address', BUY_NOT_ENOUGH_ETH = 'Buy - Not Enough Eth', BUY_STARTED = 'Buy - Started', BUY_SIGNATURE_DENIED = 'Buy - Signature Denied', @@ -136,6 +139,9 @@ export const analytics = { trackAccountUnlockDenied: trackingEventFnWithoutPayload(EventNames.ACCOUNT_UNLOCK_DENIED), trackAccountAddressChanged: (address: string) => trackingEventFnWithPayload(EventNames.ACCOUNT_ADDRESS_CHANGED)({ address }), + trackPaymentMethodDropdownOpened: trackingEventFnWithoutPayload(EventNames.PAYMENT_METHOD_DROPDOWN_OPENED), + trackPaymentMethodOpenedEtherscan: trackingEventFnWithoutPayload(EventNames.PAYMENT_METHOD_OPENED_ETHERSCAN), + trackPaymentMethodCopiedAddress: trackingEventFnWithoutPayload(EventNames.PAYMENT_METHOD_COPIED_ADDRESS), trackBuyNotEnoughEth: (buyQuote: BuyQuote) => trackingEventFnWithPayload(EventNames.BUY_NOT_ENOUGH_ETH)(buyQuoteEventProperties(buyQuote)), trackBuyStarted: (buyQuote: BuyQuote) => |