SOL-217 Remove Google Analytics calls

This commit is contained in:
Dino Cikatic
2015-03-06 13:37:12 +01:00
committed by marjev
parent dd34bada71
commit ee90c5fe36
3 changed files with 21 additions and 30 deletions

View File

@@ -178,26 +178,3 @@ class CoursewareSearchIndexer(object):
event_name,
data
)
try:
if settings.FEATURES.get('SEGMENT_IO_LMS') and hasattr(settings, 'SEGMENT_IO_LMS_KEY'):
# Google Analytics - log index content request
import analytics
analytics.track(
event_name,
data,
context={
'Google Analytics': {
'clientId': tracking_context.get('client_id')
}
}
)
except Exception: # pylint: disable=broad-except
# Capturing all exceptions thrown while tracking analytics events. We do not want
# an operation to fail because of an analytics event, so we will capture these
# errors in the logs.
log.exception(
u'Unable to emit %s event for content indexing.',
event_name,
)