@@ -72,20 +72,20 @@ GA.on('construct', function(integration) {
7272 integration . loaded = integration . loadedClassic ;
7373 integration . page = integration . pageClassic ;
7474 integration . track = integration . trackClassic ;
75- integration . completedOrder = integration . completedOrderClassic ;
75+ integration . orderCompleted = integration . completedOrderClassic ;
7676 } else if ( integration . options . enhancedEcommerce ) {
77- integration . viewedProduct = integration . viewedProductEnhanced ;
78- integration . clickedProduct = integration . clickedProductEnhanced ;
79- integration . addedProduct = integration . addedProductEnhanced ;
80- integration . removedProduct = integration . removedProductEnhanced ;
81- integration . startedOrder = integration . startedOrderEnhanced ;
82- integration . viewedCheckoutStep = integration . viewedCheckoutStepEnhanced ;
83- integration . completedCheckoutStep = integration . completedCheckoutStepEnhanced ;
84- integration . updatedOrder = integration . updatedOrderEnhanced ;
85- integration . completedOrder = integration . completedOrderEnhanced ;
86- integration . refundedOrder = integration . refundedOrderEnhanced ;
87- integration . viewedPromotion = integration . viewedPromotionEnhanced ;
88- integration . clickedPromotion = integration . clickedPromotionEnhanced ;
77+ integration . productViewed = integration . productViewedEnhanced ;
78+ integration . productClicked = integration . productClickedEnhanced ;
79+ integration . productAdded = integration . productAddedEnhanced ;
80+ integration . productRemoved = integration . productRemovedEnhanced ;
81+ integration . orderStarted = integration . orderStartedEnhanced ;
82+ integration . checkoutStepViewed = integration . checkoutStepViewedEnhanced ;
83+ integration . checkoutStepCompleted = integration . checkoutStepCompletedEnhanced ;
84+ integration . orderUpdated = integration . orderUpdatedEnhanced ;
85+ integration . orderCompleted = integration . orderCompletedEnhanced ;
86+ integration . orderRefunded = integration . orderRefundedEnhanced ;
87+ integration . promotionViewed = integration . promotionViewedEnhanced ;
88+ integration . promotionClicked = integration . promotionClickedEnhanced ;
8989 }
9090} ) ;
9191
@@ -279,7 +279,7 @@ GA.prototype.track = function(track, options) {
279279} ;
280280
281281/**
282- * Completed order .
282+ * Order completed .
283283 *
284284 * https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce
285285 * https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce#multicurrency
@@ -288,7 +288,7 @@ GA.prototype.track = function(track, options) {
288288 * @api private
289289 */
290290
291- GA . prototype . completedOrder = function ( track ) {
291+ GA . prototype . orderCompleted = function ( track ) {
292292 var total = track . total ( ) || track . revenue ( ) || 0 ;
293293 var orderId = track . orderId ( ) ;
294294 var products = track . products ( ) ;
@@ -589,7 +589,7 @@ GA.prototype.pushEnhancedEcommerce = function(track) {
589589 * @param {Track } track
590590 */
591591
592- GA . prototype . startedOrderEnhanced = function ( track ) {
592+ GA . prototype . orderStartedEnhanced = function ( track ) {
593593 // same as viewed checkout step #1
594594 this . viewedCheckoutStep ( track ) ;
595595} ;
@@ -603,9 +603,9 @@ GA.prototype.startedOrderEnhanced = function(track) {
603603 * @param {Track } track
604604 */
605605
606- GA . prototype . updatedOrderEnhanced = function ( track ) {
606+ GA . prototype . orderUpdatedEnhanced = function ( track ) {
607607 // Same event as started order - will override
608- this . startedOrderEnhanced ( track ) ;
608+ this . orderStartedEnhanced ( track ) ;
609609} ;
610610
611611/**
@@ -617,7 +617,7 @@ GA.prototype.updatedOrderEnhanced = function(track) {
617617 * @param {Track } track
618618 */
619619
620- GA . prototype . viewedCheckoutStepEnhanced = function ( track ) {
620+ GA . prototype . checkoutStepViewedEnhanced = function ( track ) {
621621 var products = track . products ( ) ;
622622 var props = track . properties ( ) ;
623623 var options = extractCheckoutOptions ( props ) ;
@@ -646,7 +646,7 @@ GA.prototype.viewedCheckoutStepEnhanced = function(track) {
646646 * @param {Track } track
647647 */
648648
649- GA . prototype . completedCheckoutStepEnhanced = function ( track ) {
649+ GA . prototype . checkoutStepCompletedEnhanced = function ( track ) {
650650 var props = track . properties ( ) ;
651651 var options = extractCheckoutOptions ( props ) ;
652652
@@ -672,7 +672,7 @@ GA.prototype.completedCheckoutStepEnhanced = function(track) {
672672 * @param {Track } track
673673 */
674674
675- GA . prototype . completedOrderEnhanced = function ( track ) {
675+ GA . prototype . orderCompletedEnhanced = function ( track ) {
676676 var total = track . total ( ) || track . revenue ( ) || 0 ;
677677 var orderId = track . orderId ( ) ;
678678 var products = track . products ( ) ;
@@ -709,7 +709,7 @@ GA.prototype.completedOrderEnhanced = function(track) {
709709 * @param {Track } track
710710 */
711711
712- GA . prototype . refundedOrderEnhanced = function ( track ) {
712+ GA . prototype . orderRefundedEnhanced = function ( track ) {
713713 var orderId = track . orderId ( ) ;
714714 var products = track . products ( ) ;
715715
@@ -743,7 +743,7 @@ GA.prototype.refundedOrderEnhanced = function(track) {
743743 * @param {Track } track
744744 */
745745
746- GA . prototype . addedProductEnhanced = function ( track ) {
746+ GA . prototype . productAddedEnhanced = function ( track ) {
747747 this . loadEnhancedEcommerce ( track ) ;
748748 enhancedEcommerceProductAction ( track , 'add' ) ;
749749 this . pushEnhancedEcommerce ( track ) ;
@@ -758,7 +758,7 @@ GA.prototype.addedProductEnhanced = function(track) {
758758 * @param {Track } track
759759 */
760760
761- GA . prototype . removedProductEnhanced = function ( track ) {
761+ GA . prototype . productRemovedEnhanced = function ( track ) {
762762 this . loadEnhancedEcommerce ( track ) ;
763763 enhancedEcommerceProductAction ( track , 'remove' ) ;
764764 this . pushEnhancedEcommerce ( track ) ;
@@ -773,7 +773,7 @@ GA.prototype.removedProductEnhanced = function(track) {
773773 * @param {Track } track
774774 */
775775
776- GA . prototype . viewedProductEnhanced = function ( track ) {
776+ GA . prototype . productViewedEnhanced = function ( track ) {
777777 var props = track . properties ( ) ;
778778 var data = { } ;
779779
@@ -793,7 +793,7 @@ GA.prototype.viewedProductEnhanced = function(track) {
793793 * @param {Track } track
794794 */
795795
796- GA . prototype . clickedProductEnhanced = function ( track ) {
796+ GA . prototype . productClickedEnhanced = function ( track ) {
797797 var props = track . properties ( ) ;
798798 var data = { } ;
799799
@@ -813,7 +813,7 @@ GA.prototype.clickedProductEnhanced = function(track) {
813813 * @param {Track } track
814814 */
815815
816- GA . prototype . viewedPromotionEnhanced = function ( track ) {
816+ GA . prototype . promotionViewedEnhanced = function ( track ) {
817817 var props = track . properties ( ) ;
818818
819819 this . loadEnhancedEcommerce ( track ) ;
@@ -835,7 +835,7 @@ GA.prototype.viewedPromotionEnhanced = function(track) {
835835 * @param {Track } track
836836 */
837837
838- GA . prototype . clickedPromotionEnhanced = function ( track ) {
838+ GA . prototype . promotionClickedEnhanced = function ( track ) {
839839 var props = track . properties ( ) ;
840840
841841 this . loadEnhancedEcommerce ( track ) ;
0 commit comments