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: () => ({