diff --git a/public/index.html b/public/index.html index cfe5611c..e1a12ed6 100755 --- a/public/index.html +++ b/public/index.html @@ -1,19 +1,8 @@ - Learner Dashboard | <%= process.env.SITE_NAME %> - - <% if (process.env.OPTIMIZELY_URL) { %> - - <% } else if (process.env.OPTIMIZELY_PROJECT_ID) { %> - - <% } %>
diff --git a/src/App.jsx b/src/App.jsx index 722298cc..3a062ea3 100755 --- a/src/App.jsx +++ b/src/App.jsx @@ -27,6 +27,7 @@ import fakeData from 'data/services/lms/fakeData/courses'; import AppWrapper from 'containers/WidgetContainers/AppWrapper'; import LearnerDashboardHeader from 'containers/LearnerDashboardHeader'; +import { getConfig } from '@edx/frontend-platform'; import messages from './messages'; import './App.scss'; @@ -41,8 +42,21 @@ export const App = () => { const { supportEmail } = reduxHooks.usePlatformSettingsData(); const loadData = reduxHooks.useLoadData(); + const optimizelyScript = () => { + if (getConfig().OPTIMIZELY_URL) { + return