diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-13 02:04:23 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-13 02:04:23 +0800 |
commit | 68faaaba5f4278d7a1bd5d02f97921fa3c4238f4 (patch) | |
tree | fc94a49d506b3977f570ed6d72364460e813275c /packages/instant/src/redux | |
parent | 0690e68a833e0ca75d31614621aa0278009cc10c (diff) | |
download | dexon-sol-tools-68faaaba5f4278d7a1bd5d02f97921fa3c4238f4.tar dexon-sol-tools-68faaaba5f4278d7a1bd5d02f97921fa3c4238f4.tar.gz dexon-sol-tools-68faaaba5f4278d7a1bd5d02f97921fa3c4238f4.tar.bz2 dexon-sol-tools-68faaaba5f4278d7a1bd5d02f97921fa3c4238f4.tar.lz dexon-sol-tools-68faaaba5f4278d7a1bd5d02f97921fa3c4238f4.tar.xz dexon-sol-tools-68faaaba5f4278d7a1bd5d02f97921fa3c4238f4.tar.zst dexon-sol-tools-68faaaba5f4278d7a1bd5d02f97921fa3c4238f4.zip |
Analytics events for ETH/USD toggle and failure to fetch eth usd price
Diffstat (limited to 'packages/instant/src/redux')
-rw-r--r-- | packages/instant/src/redux/analytics_middleware.ts | 3 | ||||
-rw-r--r-- | packages/instant/src/redux/async_data.ts | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/packages/instant/src/redux/analytics_middleware.ts b/packages/instant/src/redux/analytics_middleware.ts index 3f7a51707..a86a16b1a 100644 --- a/packages/instant/src/redux/analytics_middleware.ts +++ b/packages/instant/src/redux/analytics_middleware.ts @@ -99,6 +99,9 @@ export const analyticsMiddleware: Middleware = store => next => middlewareAction analytics.trackInstallWalletModalClosed(); } break; + case ActionTypes.UPDATE_BASE_CURRENCY: + analytics.trackBaseCurrencyChanged(curState.baseCurrency); + analytics.addEventProperties({ baseCurrency: curState.baseCurrency }); } return nextAction; diff --git a/packages/instant/src/redux/async_data.ts b/packages/instant/src/redux/async_data.ts index 8ef95add4..3961d8821 100644 --- a/packages/instant/src/redux/async_data.ts +++ b/packages/instant/src/redux/async_data.ts @@ -26,6 +26,7 @@ export const asyncData = { dispatch(actions.updateEthUsdPrice(BIG_NUMBER_ZERO)); dispatch(actions.updateBaseCurrency(BaseCurrency.ETH)); errorReporter.report(e); + analytics.trackUsdPriceFailed(); } }, fetchAvailableAssetDatasAndDispatchToStore: async (state: State, dispatch: Dispatch) => { |