diff options
author | Fabio Berger <me@fabioberger.com> | 2018-02-07 08:25:50 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-02-07 08:25:50 +0800 |
commit | c172b9e0800dd9ed959b03e7ee418b9787c70c38 (patch) | |
tree | 29ec60d527c2cd341ea650e0ae87e8afbd90ef55 /packages/website/ts/components/generate_order/generate_order_form.tsx | |
parent | 5533a84dcda251509fdf771ea37678a3be2fac6d (diff) | |
download | dexon-0x-contracts-c172b9e0800dd9ed959b03e7ee418b9787c70c38.tar dexon-0x-contracts-c172b9e0800dd9ed959b03e7ee418b9787c70c38.tar.gz dexon-0x-contracts-c172b9e0800dd9ed959b03e7ee418b9787c70c38.tar.bz2 dexon-0x-contracts-c172b9e0800dd9ed959b03e7ee418b9787c70c38.tar.lz dexon-0x-contracts-c172b9e0800dd9ed959b03e7ee418b9787c70c38.tar.xz dexon-0x-contracts-c172b9e0800dd9ed959b03e7ee418b9787c70c38.tar.zst dexon-0x-contracts-c172b9e0800dd9ed959b03e7ee418b9787c70c38.zip |
Add networkId to event label
Diffstat (limited to 'packages/website/ts/components/generate_order/generate_order_form.tsx')
-rw-r--r-- | packages/website/ts/components/generate_order/generate_order_form.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/website/ts/components/generate_order/generate_order_form.tsx b/packages/website/ts/components/generate_order/generate_order_form.tsx index 2a62d4b9e..c9417f5a4 100644 --- a/packages/website/ts/components/generate_order/generate_order_form.tsx +++ b/packages/website/ts/components/generate_order/generate_order_form.tsx @@ -30,6 +30,7 @@ import { TokenByAddress, } from 'ts/types'; import { colors } from 'ts/utils/colors'; +import { constants } from 'ts/utils/constants'; import { errorReporter } from 'ts/utils/error_reporter'; import { utils } from 'ts/utils/utils'; @@ -262,10 +263,12 @@ export class GenerateOrderForm extends React.Component<GenerateOrderFormProps, G ) { const didSignSuccessfully = await this._signTransactionAsync(); if (didSignSuccessfully) { + const networkName = constants.NETWORK_NAME_BY_ID[this.props.networkId]; + const eventLabel = `${this.props.tokenByAddress[debitToken.address].symbol}-${networkName}`; ReactGA.event({ category: 'Portal', action: 'Sign Order Success', - label: this.props.tokenByAddress[debitToken.address].symbol, + label: eventLabel, value: debitToken.amount.toNumber(), }); this.setState({ |