Rename SEGMENT_KEY to have a unique key name for both CMS and LMS

This commit is contained in:
Bill DeRusha
2015-10-01 18:39:57 -04:00
parent cc15a9ada8
commit bcb71a3255
21 changed files with 30 additions and 30 deletions

View File

@@ -593,7 +593,7 @@ def login_analytics(strategy, auth_entry, *args, **kwargs):
elif auth_entry in [AUTH_ENTRY_ACCOUNT_SETTINGS]:
event_name = 'edx.bi.user.account.linked'
if event_name is not None and settings.SEGMENT_KEY:
if event_name is not None and hasattr(settings, 'LMS_SEGMENT_KEY') and settings.LMS_SEGMENT_KEY:
tracking_context = tracker.get_tracker().resolve_context()
analytics.track(
kwargs['user'].id,