diff --git a/app/component/AppBarHsl.js b/app/component/AppBarHsl.js index 049acd2618..856833983c 100644 --- a/app/component/AppBarHsl.js +++ b/app/component/AppBarHsl.js @@ -7,7 +7,6 @@ import { Helmet } from 'react-helmet'; import { configShape } from '../util/shapes'; import { clearOldSearches, clearFutureRoutes } from '../util/storeUtils'; import { getJson } from '../util/xhrPromise'; -import { addAnalyticsEvent } from '../util/analyticsUtils'; const SiteHeader = lazy(() => import('@hsl-fi/site-header')); const SharedLocalStorageObserver = lazy( @@ -107,15 +106,6 @@ const AppBarHsl = ({ lang, user, favourites }, context) => { const siteHeaderRef = useRef(null); const notificationTime = useRef(0); - useEffect(() => { - if (user) { - addAnalyticsEvent({ - event: 'user-hsl-id', - hslId: user.sub, - }); - } - }, [user]); - useEffect(() => { const now = Date.now(); // refresh only once per 5 seconds