From 22f58be4aa96d4e64ee0469e9116fad7098535b8 Mon Sep 17 00:00:00 2001 From: Renzo Lucioni Date: Thu, 11 Sep 2014 17:12:35 -0400 Subject: [PATCH] Add tracking on expand of upsell message --- lms/templates/dashboard.html | 16 ++++++---------- .../dashboard/_dashboard_course_listing.html | 5 ----- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html index c011c33db4..a31fb413a1 100644 --- a/lms/templates/dashboard.html +++ b/lms/templates/dashboard.html @@ -5,7 +5,6 @@ <%! from django.core.urlresolvers import reverse - import waffle %> <% @@ -31,6 +30,12 @@ (e).preventDefault(); $(this).closest('.message.is-expandable').toggleClass('is-expanded'); + + course = $("#upgrade-to-verified").data("course-id"); + analytics.track('edx.bi.dashboard.upsell_copy.clicked', { + category: 'user-engagement', + label: course + }); } $("#failed-verification-button-dismiss").click(function(event) { @@ -45,15 +50,6 @@ user = $(event.target).data("user"); course = $(event.target).data("course-id"); Logger.log('edx.course.enrollment.upgrade.clicked', [user, course], null); - % if waffle.flag_is_active(request, 'alternate_upsell_copy'): - analytics.track("Clicked on Alternate Upsell Copy", { - course: course - }); - % else: - analytics.track("Clicked on Regular Upsell Copy", { - course: course - }); - % endif }); $(".email-settings").click(function(event) { diff --git a/lms/templates/dashboard/_dashboard_course_listing.html b/lms/templates/dashboard/_dashboard_course_listing.html index fd4dd77005..7000f93384 100644 --- a/lms/templates/dashboard/_dashboard_course_listing.html +++ b/lms/templates/dashboard/_dashboard_course_listing.html @@ -4,7 +4,6 @@ <%! from django.core.urlresolvers import reverse from courseware.courses import course_image_url, get_course_about_section - import waffle %> <% @@ -107,11 +106,7 @@

- % if waffle.flag_is_active(request, 'alternate_upsell_copy'): - ${_("Document your accomplishment!")} - % else: ${_("Challenge Yourself!")} - % endif

${_("Take this course as an ID-verified student.")}