diff --git a/lib/index.js b/lib/index.js index 2f33201..b2fb1bd 100644 --- a/lib/index.js +++ b/lib/index.js @@ -92,9 +92,9 @@ Optimizely.prototype.track = function(track) { // Optimizely expects revenue only passed through Order Completed events if (eventProperties.revenue && opts.sendRevenueOnlyForOrderCompleted) { - if (track.event() === 'Order Completed') { + if (track.event() === 'Order Completed' || track.event() === 'Completed Order') { eventProperties.revenue = Math.round(eventProperties.revenue * 100); - } else if (track.event() !== 'Order Completed') { + } else { delete eventProperties.revenue; } // This is legacy Segment-Optimizely behavior,