Commit 58a4f68a by Matthew Piatetsky

Rename completed order event

parent 13608048
......@@ -102,7 +102,7 @@ var edx = edx || {};
},
trackPurchase: function(order) {
window.analytics.track('Completed Order', {
window.analytics.track('Completed Purchase', {
orderId: order.number,
total: order.total_excl_tax,
currency: order.currency
......
......@@ -160,7 +160,7 @@ define([
it('sends analytic event when verified receipt is rendered', function() {
mockRender(true, 'True');
expect(window.analytics.track).toHaveBeenCalledWith(
'Completed Order',
'Completed Purchase',
{
orderId: 'EDX-123456',
total: '10.00',
......@@ -172,7 +172,7 @@ define([
it('sends analytic event when non verified receipt is rendered', function() {
mockRender(true, 'False');
expect(window.analytics.track).toHaveBeenCalledWith(
'Completed Order',
'Completed Purchase',
{
orderId: 'EDX-123456',
total: '10.00',
......
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