diff options
author | Thomas Schmidt <tomhschmidt@thomass-mbp-2.lan> | 2018-02-06 08:20:53 +0800 |
---|---|---|
committer | Thomas Schmidt <tomhschmidt@thomass-mbp-2.lan> | 2018-02-06 08:20:53 +0800 |
commit | 75ded897907461e63990fd3bb2d503213768edd8 (patch) | |
tree | a7bc6ec8622cb2a2770389cc87ddd9d23f540128 /packages/website/ts/components/inputs | |
parent | 598ce0d40129b7426d47404a3e6ff886c2e186b9 (diff) | |
download | dexon-0x-contracts-75ded897907461e63990fd3bb2d503213768edd8.tar dexon-0x-contracts-75ded897907461e63990fd3bb2d503213768edd8.tar.gz dexon-0x-contracts-75ded897907461e63990fd3bb2d503213768edd8.tar.bz2 dexon-0x-contracts-75ded897907461e63990fd3bb2d503213768edd8.tar.lz dexon-0x-contracts-75ded897907461e63990fd3bb2d503213768edd8.tar.xz dexon-0x-contracts-75ded897907461e63990fd3bb2d503213768edd8.tar.zst dexon-0x-contracts-75ded897907461e63990fd3bb2d503213768edd8.zip |
GA logging for order creation
Diffstat (limited to 'packages/website/ts/components/inputs')
-rw-r--r-- | packages/website/ts/components/inputs/allowance_toggle.tsx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/packages/website/ts/components/inputs/allowance_toggle.tsx b/packages/website/ts/components/inputs/allowance_toggle.tsx index 26c693dee..dc6fdc198 100644 --- a/packages/website/ts/components/inputs/allowance_toggle.tsx +++ b/packages/website/ts/components/inputs/allowance_toggle.tsx @@ -76,15 +76,20 @@ export class AllowanceToggle extends React.Component<AllowanceToggleProps, Allow } try { await this.props.blockchain.setProxyAllowanceAsync(this.props.token, newAllowanceAmountInBaseUnits) - .then((fulfilled: any) => { + .then(() => { ReactGA.event({ category: 'Portal', - action: 'Set Allowance', + action: 'Set Allowance Success', + label: this.props.token.symbol, + value: newAllowanceAmountInBaseUnits, + }); + }, () => { + ReactGA.event({ + category: 'Portal', + action: 'Set Allowance Failure', label: this.props.token.symbol, value: newAllowanceAmountInBaseUnits, }); - }, (rejected: any) => { - console.log(rejected); }); await this.props.refetchTokenStateAsync(); } catch (err) { |