Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 62e7c37

Browse files
author
Aaron
authored
Merge pull request #2677 from mehrzad-fs/gtm-buy-price
Mehrzad /gtm buy_price
2 parents 27d701d + f772089 commit 62e7c37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/botPage/bot/TradeEngine/Purchase.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { recoverFromError, doUntilDone } from '../tools';
33
import { contractStatus, info, notify } from '../broadcast';
44
import { purchaseSuccessful } from './state/actions';
55
import { BEFORE_PURCHASE } from './state/constants';
6+
import GTM from '../../../common/gtm';
67

78
let delayIndex = 0;
89

@@ -17,6 +18,7 @@ export default Engine =>
1718
const { currency, proposal } = this.selectProposal(contractType);
1819
const onSuccess = r => {
1920
const { buy } = r;
21+
GTM.pushDataLayer({ event: 'bot_purchase', buy_price: proposal.ask_price });
2022

2123
contractStatus({
2224
id : 'contract.purchase_recieved',

0 commit comments

Comments
 (0)