diff --git a/app/views/courses/CoursesView.coffee b/app/views/courses/CoursesView.coffee index d19dd26d7..7d0081e7c 100644 --- a/app/views/courses/CoursesView.coffee +++ b/app/views/courses/CoursesView.coffee @@ -63,7 +63,6 @@ module.exports = class CoursesView extends RootView @supermodel.loadModel(@hero, 'hero') @listenTo @hero, 'all', -> @render() - window.tracker?.trackEvent 'Students Loaded', category: 'Students', ['Mixpanel'] afterInsert: -> super() diff --git a/app/views/courses/RestrictedToStudentsView.coffee b/app/views/courses/RestrictedToStudentsView.coffee index 276b39d32..a781b4fa8 100644 --- a/app/views/courses/RestrictedToStudentsView.coffee +++ b/app/views/courses/RestrictedToStudentsView.coffee @@ -5,4 +5,4 @@ module.exports = class RestrictedToStudentsView extends RootView template: require 'templates/courses/restricted-to-students-view' initialize: -> - window.tracker?.trackEvent 'Restricted To Students Loaded', category: 'Students', ['Mixpanel'] + window.tracker?.trackEvent 'Restricted To Students Loaded', category: 'Students', [] diff --git a/app/views/play/level/HintsView.coffee b/app/views/play/level/HintsView.coffee index 60b7fa854..0061d11c4 100644 --- a/app/views/play/level/HintsView.coffee +++ b/app/views/play/level/HintsView.coffee @@ -58,14 +58,14 @@ module.exports = class HintsView extends CocoView @state.set({ hintsTitle, hint: @hintsState.getHint(index) }) onClickNextButton: -> - window.tracker?.trackEvent 'Hints Next Clicked', category: 'Students', levelSlug: @level.get('slug'), hintCount: @hintsState.get('hints')?.length ? 0, hintCurrent: @state.get('hintIndex'), ['Mixpanel'] + window.tracker?.trackEvent 'Hints Next Clicked', category: 'Students', levelSlug: @level.get('slug'), hintCount: @hintsState.get('hints')?.length ? 0, hintCurrent: @state.get('hintIndex'), [] max = @hintsState.get('total') - 1 @state.set('hintIndex', Math.min(@state.get('hintIndex') + 1, max)) @playSound 'menu-button-click' @updateHintTimer() onClickPreviousButton: -> - window.tracker?.trackEvent 'Hints Previous Clicked', category: 'Students', levelSlug: @level.get('slug'), hintCount: @hintsState.get('hints')?.length ? 0, hintCurrent: @state.get('hintIndex'), ['Mixpanel'] + window.tracker?.trackEvent 'Hints Previous Clicked', category: 'Students', levelSlug: @level.get('slug'), hintCount: @hintsState.get('hints')?.length ? 0, hintCurrent: @state.get('hintIndex'), [] @state.set('hintIndex', Math.max(@state.get('hintIndex') - 1, 0)) @playSound 'menu-button-click' @updateHintTimer() @@ -89,7 +89,7 @@ module.exports = class HintsView extends CocoView hintsViewTime[hintIndex]++ hintsUsed = @state.get('hintsUsed') if hintsViewTime[hintIndex] > @hintUsedThresholdSeconds and not hintsUsed[hintIndex] - window.tracker?.trackEvent 'Hint Used', category: 'Students', levelSlug: @level.get('slug'), hintCount: @hintsState.get('hints')?.length ? 0, hintCurrent: hintIndex, ['Mixpanel'] + window.tracker?.trackEvent 'Hint Used', category: 'Students', levelSlug: @level.get('slug'), hintCount: @hintsState.get('hints')?.length ? 0, hintCurrent: hintIndex, [] hintsUsed[hintIndex] = true @state.set('hintsUsed', hintsUsed) clearInterval(@timerIntervalID) diff --git a/app/views/play/level/modal/CourseVictoryModal.coffee b/app/views/play/level/modal/CourseVictoryModal.coffee index b59a18a4c..6c94fe7c2 100644 --- a/app/views/play/level/modal/CourseVictoryModal.coffee +++ b/app/views/play/level/modal/CourseVictoryModal.coffee @@ -49,7 +49,7 @@ module.exports = class CourseVictoryModal extends ModalView @course = new Course() @supermodel.trackRequest @course.fetchForCourseInstance(@courseInstanceID) - window.tracker?.trackEvent 'Play Level Victory Modal Loaded', category: 'Students', levelSlug: @level.get('slug'), ['Mixpanel'] + window.tracker?.trackEvent 'Play Level Victory Modal Loaded', category: 'Students', levelSlug: @level.get('slug'), [] onResourceLoadFailed: (e) -> if e.resource.jqxhr is @nextLevelRequest @@ -98,7 +98,7 @@ module.exports = class CourseVictoryModal extends ModalView @showView(@views[index+1]) onNextLevel: -> - window.tracker?.trackEvent 'Play Level Victory Modal Next Level', category: 'Students', levelSlug: @level.get('slug'), nextLevelSlug: @nextLevel.get('slug'), ['Mixpanel'] + window.tracker?.trackEvent 'Play Level Victory Modal Next Level', category: 'Students', levelSlug: @level.get('slug'), nextLevelSlug: @nextLevel.get('slug'), [] if me.isSessionless() link = "/play/level/#{@nextLevel.get('slug')}?course=#{@courseID}&codeLanguage=#{utils.getQueryVariable('codeLanguage', 'python')}" else @@ -107,7 +107,7 @@ module.exports = class CourseVictoryModal extends ModalView application.router.navigate(link, {trigger: true}) onDone: -> - window.tracker?.trackEvent 'Play Level Victory Modal Done', category: 'Students', levelSlug: @level.get('slug'), ['Mixpanel'] + window.tracker?.trackEvent 'Play Level Victory Modal Done', category: 'Students', levelSlug: @level.get('slug'), [] if me.isSessionless() link = '/teachers/courses' else diff --git a/app/views/play/level/tome/SpellTopBarView.coffee b/app/views/play/level/tome/SpellTopBarView.coffee index a3cddf06e..a992c0865 100644 --- a/app/views/play/level/tome/SpellTopBarView.coffee +++ b/app/views/play/level/tome/SpellTopBarView.coffee @@ -50,7 +50,7 @@ module.exports = class SpellTopBarView extends CocoView onClickHintsButton: -> return unless @hintsState? @hintsState.set('hidden', not @hintsState.get('hidden')) - window.tracker?.trackEvent 'Hints Clicked', category: 'Students', levelSlug: @options.level.get('slug'), hintCount: @hintsState.get('hints')?.length ? 0, ['Mixpanel'] + window.tracker?.trackEvent 'Hints Clicked', category: 'Students', levelSlug: @options.level.get('slug'), hintCount: @hintsState.get('hints')?.length ? 0, [] onCodeReload: (e) -> @openModalView new ReloadLevelModal()