From 9b147f59695cb5b83ff29b18301679532dceccbf Mon Sep 17 00:00:00 2001 From: JJ <34042537+jhan217@users.noreply.github.com> Date: Wed, 15 Jul 2020 09:50:53 -0400 Subject: [PATCH] use class selector instead of id selector for course_dashboard_green button (#24471) Replaced the id selector used for tracking the course_dashboard_green button with a class selector instead, so we get eventing on each button per course on the course dashboard page. --- lms/templates/dashboard/_dashboard_course_listing.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/templates/dashboard/_dashboard_course_listing.html b/lms/templates/dashboard/_dashboard_course_listing.html index 48adca88db..d24a484ce3 100644 --- a/lms/templates/dashboard/_dashboard_course_listing.html +++ b/lms/templates/dashboard/_dashboard_course_listing.html @@ -414,7 +414,7 @@ from lms.djangoapps.experiments.utils import UPSELL_TRACKING_FLAG

% if use_ecommerce_payment_flow and course_mode_info['verified_sku']: - + % else: % endif @@ -463,7 +463,7 @@ from lms.djangoapps.experiments.utils import UPSELL_TRACKING_FLAG if (window.loadedECommerceEvents === undefined) { window.loadedECommerceEvents = true; - TrackECommerceEvents.trackUpsellClick($("#ecommerce_upgrade_link"), 'course_dashboard_green', { + TrackECommerceEvents.trackUpsellClick($(".track_course_dashboard_green_button"), 'course_dashboard_green', { pageName: "course_dashboard", linkType: "button", linkCategory: "green_upgrade"