aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/containers
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-28 06:14:30 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-28 06:14:30 +0800
commit856f4b473b54ecb3dc707ea334890397c98606bf (patch)
tree0d94538b5737017d734e9f46f0144f20abd88a78 /packages/instant/src/containers
parent47a87e57f1cfa82375c87829320f30049217d657 (diff)
downloaddexon-sol-tools-856f4b473b54ecb3dc707ea334890397c98606bf.tar
dexon-sol-tools-856f4b473b54ecb3dc707ea334890397c98606bf.tar.gz
dexon-sol-tools-856f4b473b54ecb3dc707ea334890397c98606bf.tar.bz2
dexon-sol-tools-856f4b473b54ecb3dc707ea334890397c98606bf.tar.lz
dexon-sol-tools-856f4b473b54ecb3dc707ea334890397c98606bf.tar.xz
dexon-sol-tools-856f4b473b54ecb3dc707ea334890397c98606bf.tar.zst
dexon-sol-tools-856f4b473b54ecb3dc707ea334890397c98606bf.zip
feat(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.ts3
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;
}