Merge pull request #6282 from edx/diana/kill-courseware-bi-events
Remove Segment events from courseware.
This commit is contained in:
@@ -301,12 +301,6 @@ class @Problem
|
||||
|
||||
Logger.log 'problem_check', @answers
|
||||
|
||||
# Segment.io
|
||||
analytics.track "edx.bi.course.problem.checked",
|
||||
category: "courseware"
|
||||
problem_id: @id
|
||||
answers: @answers
|
||||
|
||||
$.postWithPrefix("#{@url}/problem_check", @answers, (response) =>
|
||||
switch response.success
|
||||
when 'incorrect', 'correct'
|
||||
|
||||
@@ -126,15 +126,6 @@ class @Sequence
|
||||
if (1 <= new_position) and (new_position <= @num_contents)
|
||||
Logger.log "seq_goto", old: @position, new: new_position, id: @id
|
||||
|
||||
analytics.pageview @id
|
||||
|
||||
# navigation by clicking the tab directly
|
||||
analytics.track "edx.bi.course.sequential.direct.clicked",
|
||||
category: "courseware"
|
||||
sequence_id: @id
|
||||
current_sequential: @position
|
||||
target_sequential: new_position
|
||||
|
||||
# On Sequence change, destroy any existing polling thread
|
||||
# for queued submissions, see ../capa/display.coffee
|
||||
if window.queuePollerID
|
||||
@@ -165,18 +156,6 @@ class @Sequence
|
||||
new: new_position
|
||||
id: @id
|
||||
|
||||
analytics.pageview @id
|
||||
|
||||
# navigation using the next or previous arrow button.
|
||||
tracking_messages =
|
||||
seq_prev: "edx.bi.course.sequential.previous.clicked"
|
||||
seq_next: "edx.bi.course.sequential.next.clicked"
|
||||
analytics.track tracking_messages[direction],
|
||||
category: "courseware"
|
||||
sequence_id: @id
|
||||
current_sequential: @position
|
||||
target_sequential: new_position
|
||||
|
||||
# If the bottom nav is used, scroll to the top of the page on change.
|
||||
if $(event.target).closest('nav[class="sequence-bottom"]').length > 0
|
||||
$.scrollTo 0, 150
|
||||
|
||||
Reference in New Issue
Block a user