Skip to content
Snippets Groups Projects
Unverified Commit ead2825b authored by Thomas Tracy's avatar Thomas Tracy Committed by GitHub
Browse files

Re-add course key to segment unenroll tracker (#25516)

parent 89169443
No related branches found
Tags release-2020-11-02-12.26
No related merge requests found
......@@ -38,6 +38,7 @@ class UnenrollView extends Backbone.View {
switchToSlideTwo() {
let reason = this.$(".reasons_survey input[name='reason']:checked").attr('val');
const courserunKey = $('#unenroll_course_id').val() + $('#unenroll_course_number').val();
if (reason === 'Other') {
reason = this.$('.other_text').val();
}
......@@ -46,6 +47,7 @@ class UnenrollView extends Backbone.View {
category: 'user-engagement',
label: reason,
displayName: 'v1',
courserunKey,
});
}
this.$('.slide1').addClass('hidden');
......@@ -91,7 +93,6 @@ class UnenrollView extends Backbone.View {
initialize(options) {
const view = this;
this.urls = options.urls;
this.isEdx = options.isEdx;
......
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