diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-17 00:51:41 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-17 00:51:41 +0800 |
commit | 37d60dc39ea6476c3185e124175cb02d5e830250 (patch) | |
tree | de83087e501b5c9b236658ac65f13825ae070315 /packages/instant/src/components | |
parent | ed26f5af985239e0dd91b68d4ec0aa264267acd6 (diff) | |
download | dexon-0x-contracts-37d60dc39ea6476c3185e124175cb02d5e830250.tar.gz dexon-0x-contracts-37d60dc39ea6476c3185e124175cb02d5e830250.tar.zst dexon-0x-contracts-37d60dc39ea6476c3185e124175cb02d5e830250.zip |
Typesafe analytic actions
Diffstat (limited to 'packages/instant/src/components')
-rw-r--r-- | packages/instant/src/components/zero_ex_instant_provider.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/src/components/zero_ex_instant_provider.tsx b/packages/instant/src/components/zero_ex_instant_provider.tsx index cfc542a59..77adca472 100644 --- a/packages/instant/src/components/zero_ex_instant_provider.tsx +++ b/packages/instant/src/components/zero_ex_instant_provider.tsx @@ -19,6 +19,7 @@ import { gasPriceEstimator } from '../util/gas_price_estimator'; import { Heartbeater } from '../util/heartbeater'; import { generateAccountHeartbeater, generateBuyQuoteHeartbeater } from '../util/heartbeater_factory'; import { providerStateFactory } from '../util/provider_state_factory'; +import { analyticsMiddleware } from '../redux/analytics_middleware'; fonts.include(); @@ -129,7 +130,7 @@ export class ZeroExInstantProvider extends React.Component<ZeroExInstantProvider networkId: state.network, providerName: state.providerState.name, }); - analytics.track('Widget - Opened'); + analytics.widgetOpened(); } public componentWillUnmount(): void { if (this._accountUpdateHeartbeat) { |