diff options
author | Steve Klebanoff <steve@0xproject.com> | 2018-12-01 04:52:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-01 04:52:06 +0800 |
commit | f8daacc19aef4a2c0920e8b5dad87af7b8b12196 (patch) | |
tree | 9c5c10d8b0e51fb1ef869b6ea880605ca589fb76 /packages/instant/src/containers | |
parent | f496096ce154e51ae0317cc91fd55d062eb6ec4f (diff) | |
parent | 6c941eebeae4828177b0d195168f5f1b757432e2 (diff) | |
download | dexon-sol-tools-f8daacc19aef4a2c0920e8b5dad87af7b8b12196.tar dexon-sol-tools-f8daacc19aef4a2c0920e8b5dad87af7b8b12196.tar.gz dexon-sol-tools-f8daacc19aef4a2c0920e8b5dad87af7b8b12196.tar.bz2 dexon-sol-tools-f8daacc19aef4a2c0920e8b5dad87af7b8b12196.tar.lz dexon-sol-tools-f8daacc19aef4a2c0920e8b5dad87af7b8b12196.tar.xz dexon-sol-tools-f8daacc19aef4a2c0920e8b5dad87af7b8b12196.tar.zst dexon-sol-tools-f8daacc19aef4a2c0920e8b5dad87af7b8b12196.zip |
Merge pull request #1342 from 0xProject/feature/instant/misc-close-analytics
[instant] Close and View Transaction analytics events
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r-- | packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts b/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts index 610335243..0d49edc57 100644 --- a/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts +++ b/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts @@ -10,6 +10,7 @@ import { BuyOrderStateButtons } from '../components/buy_order_state_buttons'; import { Action, actions } from '../redux/actions'; import { State } from '../redux/reducer'; import { AccountState, AffiliateInfo, OrderProcessState, ZeroExInstantError } from '../types'; +import { analytics } from '../util/analytics'; import { errorFlasher } from '../util/error_flasher'; import { etherscanUtil } from '../util/etherscan'; @@ -59,6 +60,8 @@ const mapStateToProps = (state: State, _ownProps: SelectedAssetBuyOrderStateButt assetBuyer.networkId, ); if (etherscanUrl) { + analytics.trackTransactionViewed(state.buyOrderState.processState); + window.open(etherscanUrl, '_blank'); return; } |