Commit cb7f725d by Diana Huang

Merge pull request #6282 from edx/diana/kill-courseware-bi-events

Remove Segment events from courseware.
parents 18deda93 26fd9d23
...@@ -301,12 +301,6 @@ class @Problem ...@@ -301,12 +301,6 @@ class @Problem
Logger.log 'problem_check', @answers 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) => $.postWithPrefix("#{@url}/problem_check", @answers, (response) =>
switch response.success switch response.success
when 'incorrect', 'correct' when 'incorrect', 'correct'
......
...@@ -126,15 +126,6 @@ class @Sequence ...@@ -126,15 +126,6 @@ class @Sequence
if (1 <= new_position) and (new_position <= @num_contents) if (1 <= new_position) and (new_position <= @num_contents)
Logger.log "seq_goto", old: @position, new: new_position, id: @id 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 # On Sequence change, destroy any existing polling thread
# for queued submissions, see ../capa/display.coffee # for queued submissions, see ../capa/display.coffee
if window.queuePollerID if window.queuePollerID
...@@ -165,18 +156,6 @@ class @Sequence ...@@ -165,18 +156,6 @@ class @Sequence
new: new_position new: new_position
id: @id 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 the bottom nav is used, scroll to the top of the page on change.
if $(event.target).closest('nav[class="sequence-bottom"]').length > 0 if $(event.target).closest('nav[class="sequence-bottom"]').length > 0
$.scrollTo 0, 150 $.scrollTo 0, 150
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment