From 35b142f2cd586269e23bc610bc9296dafe8e6c75 Mon Sep 17 00:00:00 2001 From: MaxFrank13 Date: Thu, 11 Sep 2025 15:15:20 +0000 Subject: [PATCH] feat: remove hotjar --- src/App.jsx | 13 ------------- src/test/app.test.jsx | 4 ---- 2 files changed, 17 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 2c148f98e..f19f8da17 100755 --- a/src/App.jsx +++ b/src/App.jsx @@ -2,8 +2,6 @@ import React from 'react'; import { Helmet } from 'react-helmet'; import { useIntl } from '@edx/frontend-platform/i18n'; -import { logError } from '@edx/frontend-platform/logging'; -import { initializeHotjar } from '@edx/frontend-enterprise-hotjar'; import { ErrorPage, AppContext } from '@edx/frontend-platform/react'; import { FooterSlot } from '@edx/frontend-component-footer'; @@ -59,17 +57,6 @@ export const App = () => { window.actions = actions; window.track = track; } - if (getConfig().HOTJAR_APP_ID) { - try { - initializeHotjar({ - hotjarId: getConfig().HOTJAR_APP_ID, - hotjarVersion: getConfig().HOTJAR_VERSION, - hotjarDebug: !!getConfig().HOTJAR_DEBUG, - }); - } catch (error) { - logError(error); - } - } }, [authenticatedUser, loadData]); return ( <> diff --git a/src/test/app.test.jsx b/src/test/app.test.jsx index 1a23f6537..529c3350e 100644 --- a/src/test/app.test.jsx +++ b/src/test/app.test.jsx @@ -55,10 +55,6 @@ jest.mock('@edx/frontend-platform/auth', () => ({ getLoginRedirectUrl: jest.fn(), })); -jest.mock('@edx/frontend-enterprise-hotjar', () => ({ - initializeHotjar: jest.fn(), -})); - jest.mock('@edx/frontend-platform/i18n', () => ({ ...jest.requireActual('@edx/frontend-platform/i18n'), useIntl: () => ({