Commit 0cc0a454 by Ahsan Ulhaq

Merge pull request #12213 from edx/ahsan/ECOM-4101-Call-analytics-track-on-receipt-page

Call analytics.track on receipt page
parents 9f95c358 3bfaf603
......@@ -47,6 +47,8 @@ var edx = edx || {};
this.trackLinks();
this.trackPurchase(data);
this.renderCourseNamePlaceholder(this.courseKey);
providerId = this.getCreditProviderId(data);
......@@ -77,6 +79,14 @@ var edx = edx || {};
$('#error-container').removeClass('hidden');
},
trackPurchase: function (order) {
window.analytics.track("Completed Order", {
orderId: order.number,
total: order.total_excl_tax,
currency: order.currency
});
},
render: function () {
var self = this,
orderId = this.ecommerceOrderNumber || this.ecommerceBasketId || $.url('?payment-order-num');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment