diff --git a/webui/react/src/App.tsx b/webui/react/src/App.tsx index 2847557f77d..5456755f2e0 100644 --- a/webui/react/src/App.tsx +++ b/webui/react/src/App.tsx @@ -57,7 +57,7 @@ const AppView: React.FC = () => { }, [ infoResponse, setInfo ]); useEffect(() => { - if (info.telemetry.enabled && info.telemetry.segmentKey) { + if (info.telemetry.enabled && info.telemetry.segmentKey && window.analytics) { window.analytics.load(info.telemetry.segmentKey); window.analytics.identify(info.clusterId); window.analytics.page();