Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
1caa8cc4
Commit
1caa8cc4
authored
Aug 14, 2014
by
Renzo Lucioni
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4827 from edx/ecom/include-optimizely
Include Optimizely on the platform
parents
9d4a28e9
3eaac3b8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
lms/envs/aws.py
+3
-0
lms/envs/common.py
+4
-4
lms/templates/widgets/optimizely.html
+2
-2
No files found.
lms/envs/aws.py
View file @
1caa8cc4
...
...
@@ -433,5 +433,8 @@ ADVANCED_SECURITY_CONFIG = ENV_TOKENS.get('ADVANCED_SECURITY_CONFIG', {})
GOOGLE_ANALYTICS_ACCOUNT
=
AUTH_TOKENS
.
get
(
'GOOGLE_ANALYTICS_ACCOUNT'
)
GOOGLE_ANALYTICS_LINKEDIN
=
AUTH_TOKENS
.
get
(
'GOOGLE_ANALYTICS_LINKEDIN'
)
##### OPTIMIZELY PROJECT ID #####
OPTIMIZELY_PROJECT_ID
=
AUTH_TOKENS
.
get
(
'OPTIMIZELY_PROJECT_ID'
,
OPTIMIZELY_PROJECT_ID
)
#### Course Registration Code length ####
REGISTRATION_CODE_LENGTH
=
ENV_TOKENS
.
get
(
'REGISTRATION_CODE_LENGTH'
,
8
)
lms/envs/common.py
View file @
1caa8cc4
...
...
@@ -148,10 +148,7 @@ FEATURES = {
# Staff Debug tool.
'ENABLE_STUDENT_HISTORY_VIEW'
:
True
,
# 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 for LMS--need to explicitly turn it on for production.
'SEGMENT_IO_LMS'
:
False
,
# Provide a UI to allow users to submit feedback from the LMS (left-hand help modal)
...
...
@@ -474,6 +471,9 @@ if FEATURES.get('ENABLE_SQL_TRACKING_LOGS'):
GOOGLE_ANALYTICS_ACCOUNT
=
None
GOOGLE_ANALYTICS_LINKEDIN
=
'GOOGLE_ANALYTICS_LINKEDIN_DUMMY'
######################## OPTIMIZELY ###########################
OPTIMIZELY_PROJECT_ID
=
None
######################## subdomain specific settings ###########################
COURSE_LISTINGS
=
{}
SUBDOMAIN_BRANDING
=
{}
...
...
lms/templates/widgets/optimizely.html
View file @
1caa8cc4
% if settings.
FEATURES.get('OPTIMIZELY_LMS')
:
<script
src=
"//cdn.optimizely.com/js/1706490390.js"
></script>
% if settings.
OPTIMIZELY_PROJECT_ID
:
<script
src=
${'//cdn.optimizely.com/js/{}.js'.format(settings.OPTIMIZELY_PROJECT_ID)}
></script>
% endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment