Skip to content
Snippets Groups Projects
Commit 26fd9d23 authored by Diana Huang's avatar Diana Huang
Browse files

Remove Segment events from courseware.

parent 2341bf1d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment