diff --git a/lms/envs/common.py b/lms/envs/common.py index 7ae3f8346b..b9b857c8d1 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -148,7 +148,10 @@ FEATURES = { # Staff Debug tool. 'ENABLE_STUDENT_HISTORY_VIEW': True, - # segment.io for LMS--need to explicitly turn it on for production. + # Optimizely for the LMS--need to explicitly turn on for production. + 'OPTIMIZELY_LMS': False, + + # Segment.io for LMS--need to explicitly turn on for production. 'SEGMENT_IO_LMS': False, # Provide a UI to allow users to submit feedback from the LMS (left-hand help modal) diff --git a/lms/templates/main.html b/lms/templates/main.html index 1c81419f7f..fefc4deec7 100644 --- a/lms/templates/main.html +++ b/lms/templates/main.html @@ -90,6 +90,8 @@ + <%include file="widgets/optimizely.html" /> + diff --git a/lms/templates/mktg_iframe.html b/lms/templates/mktg_iframe.html index 8ce5cc1f24..c47de902e7 100644 --- a/lms/templates/mktg_iframe.html +++ b/lms/templates/mktg_iframe.html @@ -22,6 +22,8 @@ <%block name="headextra"/> + <%include file="widgets/optimizely.html" /> + diff --git a/lms/templates/widgets/optimizely.html b/lms/templates/widgets/optimizely.html new file mode 100644 index 0000000000..e8d1b1f2c1 --- /dev/null +++ b/lms/templates/widgets/optimizely.html @@ -0,0 +1,3 @@ +% if settings.FEATURES.get('OPTIMIZELY_LMS'): + +% endif