From 75ded897907461e63990fd3bb2d503213768edd8 Mon Sep 17 00:00:00 2001 From: Thomas Schmidt Date: Mon, 5 Feb 2018 16:20:53 -0800 Subject: GA logging for order creation --- packages/website/ts/components/inputs/allowance_toggle.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'packages/website/ts/components/inputs') 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 { + .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) { -- cgit v1.2.3