Skip to content

Commit

Permalink
Adding Usetiful JS code and token for product tours
Browse files Browse the repository at this point in the history
  • Loading branch information
madnihamza1841 authored Jan 11, 2023
1 parent 4ea9408 commit 435edb4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cms/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -2349,5 +2349,8 @@
# HOTJAR ANALYTICS
HOTJAR_TRACKING_ID = None

# USETIFUL PRODUCT TOUR TOKEN
USETIFUL_TOKEN = 'USETIFUL_TOKEN'

# REDIRECT URL FOR EXPIRED SITES
EXPIRE_REDIRECT_URL = 'http://wordpress.edx.devstack.lms/pricing-and-plans/'
6 changes: 6 additions & 0 deletions cms/envs/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,3 +560,9 @@ def get_env_setting(setting):
'HOTJAR_TRACKING_ID',
None
)

# USETIFUL PRODUCT TOUR TOKEN
USETIFUL_TOKEN = ENV_TOKENS.get(
'USETIFUL_PROJECT_TOKEN',
None
)
3 changes: 3 additions & 0 deletions lms/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,9 @@ def _make_mako_template_dirs(settings):
# HOTJAR ANALYTICS
HOTJAR_TRACKING_ID = None

# USETIFUL PRODUCT TOUR TOKEN
USETIFUL_TOKEN = 'USETIFUL_TOKEN'

######################## BRANCH.IO ###########################
BRANCH_IO_KEY = ''

Expand Down
6 changes: 6 additions & 0 deletions lms/envs/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,12 @@ def get_env_setting(setting):
None
)

# USETIFUL PRODUCT TOUR TOKEN
USETIFUL_TOKEN = ENV_TOKENS.get(
'USETIFUL_PROJECT_TOKEN',
None
)

##### BRANCH.IO KEY #####
BRANCH_IO_KEY = AUTH_TOKENS.get('BRANCH_IO_KEY')

Expand Down
1 change: 1 addition & 0 deletions openedx/features/edly/context_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def edly_app_context(request): # pylint: disable=unused-argument
'gtm_id': configuration_helpers.get_value('GTM_ID'),
'ga_id': configuration_helpers.get_value('GA_ID'),
'hotjar_id': settings.HOTJAR_TRACKING_ID,
'usetiful_token': settings.USETIFUL_TOKEN,
'is_mobile_app': is_request_from_mobile_app(request)
}
)
Expand Down

0 comments on commit 435edb4

Please sign in to comment.