[REV-1205] Add ecommerce event tracking to FBE (feature based enrollment) upsell links (#24528)

This commit is contained in:
Diane Kaplan
2020-07-23 11:40:22 -04:00
committed by GitHub
parent a7f6879ebd
commit 0b2a9c7010
6 changed files with 46 additions and 2 deletions

View File

@@ -248,3 +248,15 @@ username = get_enterprise_learner_generic_name(request) or student.username
<%static:require_module_async module_name="js/dateutil_factory" class_name="DateUtilFactory">
DateUtilFactory.transform(iterationKey=".localized-datetime");
</%static:require_module_async>
<%static:require_module_async module_name="js/commerce/track_ecommerce_events" class_name="TrackECommerceEvents">
var fbeLink = $("#FBE_banner");
TrackECommerceEvents.trackUpsellClick(fbeLink, 'progress_audit_access_expires', {
pageName: "progress_tab",
linkType: "link",
linkCategory: "FBE_banner"
});
</%static:require_module_async>