aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-16 02:43:42 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-16 02:43:42 +0800
commit61f227e123218ba76a7fdf7fc2ee89171c2bf16c (patch)
treed821f01c41dd58e03b093a40930748dac51c2148 /packages/instant/src/components
parent20ed4fbbd46f359ca1436b2d3b9d17527c01df54 (diff)
downloaddexon-sol-tools-61f227e123218ba76a7fdf7fc2ee89171c2bf16c.tar
dexon-sol-tools-61f227e123218ba76a7fdf7fc2ee89171c2bf16c.tar.gz
dexon-sol-tools-61f227e123218ba76a7fdf7fc2ee89171c2bf16c.tar.bz2
dexon-sol-tools-61f227e123218ba76a7fdf7fc2ee89171c2bf16c.tar.lz
dexon-sol-tools-61f227e123218ba76a7fdf7fc2ee89171c2bf16c.tar.xz
dexon-sol-tools-61f227e123218ba76a7fdf7fc2ee89171c2bf16c.tar.zst
dexon-sol-tools-61f227e123218ba76a7fdf7fc2ee89171c2bf16c.zip
feat(instant): Heap middleware and first tracking events
Diffstat (limited to 'packages/instant/src/components')
-rw-r--r--packages/instant/src/components/zero_ex_instant_container.tsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/instant/src/components/zero_ex_instant_container.tsx b/packages/instant/src/components/zero_ex_instant_container.tsx
index 698bfef17..d977b0690 100644
--- a/packages/instant/src/components/zero_ex_instant_container.tsx
+++ b/packages/instant/src/components/zero_ex_instant_container.tsx
@@ -10,6 +10,7 @@ import { SelectedAssetInstantHeading } from '../containers/selected_asset_instan
import { ColorOption } from '../style/theme';
import { zIndex } from '../style/z_index';
import { OrderProcessState, SlideAnimationState } from '../types';
+import { analytics } from '../util/analytics';
import { CSSReset } from './css_reset';
import { SlidingPanel } from './sliding_panel';
@@ -68,6 +69,10 @@ export class ZeroExInstantContainer extends React.Component<{}, ZeroExInstantCon
</React.Fragment>
);
}
+ // tslint:disable-next-line:prefer-function-over-method
+ public componentDidMount(): void {
+ analytics.track('Widget - Opened');
+ }
private readonly _handleSymbolClick = (): void => {
this.setState({
tokenSelectionPanelAnimationState: 'slidIn',