Skip to content

Commit 7c55671

Browse files
committed
feat: add tracking events
1 parent 1c1d3ef commit 7c55671

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/landing/src/components/layer.switcher.dropdown.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,13 @@ export class LayerSwitcherDropdown extends Component<unknown, LayerSwitcherDropd
121121

122122
onZoomExtentChange: ChangeEventHandler<unknown> = (e) => {
123123
const target = e.target as HTMLInputElement;
124+
gaEvent(GaEvent.Ui, 'layer-list:zoomToExtent:' + target.checked);
124125
this.setState({ zoomToExtent: target.checked });
125126
};
126127

127128
onLimitToExtent: ChangeEventHandler<unknown> = (e) => {
128129
const target = e.target as HTMLInputElement;
130+
gaEvent(GaEvent.Ui, 'layer-list:limitToExtent:' + target.checked);
129131
this.setState({ limitToExtent: target.checked });
130132
};
131133

0 commit comments

Comments
 (0)