@@ -72,20 +72,20 @@ GA.on('construct', function(integration) {
72
72
integration . loaded = integration . loadedClassic ;
73
73
integration . page = integration . pageClassic ;
74
74
integration . track = integration . trackClassic ;
75
- integration . completedOrder = integration . completedOrderClassic ;
75
+ integration . orderCompleted = integration . completedOrderClassic ;
76
76
} 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 ;
89
89
}
90
90
} ) ;
91
91
@@ -279,7 +279,7 @@ GA.prototype.track = function(track, options) {
279
279
} ;
280
280
281
281
/**
282
- * Completed order .
282
+ * Order completed .
283
283
*
284
284
* https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce
285
285
* https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce#multicurrency
@@ -288,7 +288,7 @@ GA.prototype.track = function(track, options) {
288
288
* @api private
289
289
*/
290
290
291
- GA . prototype . completedOrder = function ( track ) {
291
+ GA . prototype . orderCompleted = function ( track ) {
292
292
var total = track . total ( ) || track . revenue ( ) || 0 ;
293
293
var orderId = track . orderId ( ) ;
294
294
var products = track . products ( ) ;
@@ -589,7 +589,7 @@ GA.prototype.pushEnhancedEcommerce = function(track) {
589
589
* @param {Track } track
590
590
*/
591
591
592
- GA . prototype . startedOrderEnhanced = function ( track ) {
592
+ GA . prototype . orderStartedEnhanced = function ( track ) {
593
593
// same as viewed checkout step #1
594
594
this . viewedCheckoutStep ( track ) ;
595
595
} ;
@@ -603,9 +603,9 @@ GA.prototype.startedOrderEnhanced = function(track) {
603
603
* @param {Track } track
604
604
*/
605
605
606
- GA . prototype . updatedOrderEnhanced = function ( track ) {
606
+ GA . prototype . orderUpdatedEnhanced = function ( track ) {
607
607
// Same event as started order - will override
608
- this . startedOrderEnhanced ( track ) ;
608
+ this . orderStartedEnhanced ( track ) ;
609
609
} ;
610
610
611
611
/**
@@ -617,7 +617,7 @@ GA.prototype.updatedOrderEnhanced = function(track) {
617
617
* @param {Track } track
618
618
*/
619
619
620
- GA . prototype . viewedCheckoutStepEnhanced = function ( track ) {
620
+ GA . prototype . checkoutStepViewedEnhanced = function ( track ) {
621
621
var products = track . products ( ) ;
622
622
var props = track . properties ( ) ;
623
623
var options = extractCheckoutOptions ( props ) ;
@@ -646,7 +646,7 @@ GA.prototype.viewedCheckoutStepEnhanced = function(track) {
646
646
* @param {Track } track
647
647
*/
648
648
649
- GA . prototype . completedCheckoutStepEnhanced = function ( track ) {
649
+ GA . prototype . checkoutStepCompletedEnhanced = function ( track ) {
650
650
var props = track . properties ( ) ;
651
651
var options = extractCheckoutOptions ( props ) ;
652
652
@@ -672,7 +672,7 @@ GA.prototype.completedCheckoutStepEnhanced = function(track) {
672
672
* @param {Track } track
673
673
*/
674
674
675
- GA . prototype . completedOrderEnhanced = function ( track ) {
675
+ GA . prototype . orderCompletedEnhanced = function ( track ) {
676
676
var total = track . total ( ) || track . revenue ( ) || 0 ;
677
677
var orderId = track . orderId ( ) ;
678
678
var products = track . products ( ) ;
@@ -709,7 +709,7 @@ GA.prototype.completedOrderEnhanced = function(track) {
709
709
* @param {Track } track
710
710
*/
711
711
712
- GA . prototype . refundedOrderEnhanced = function ( track ) {
712
+ GA . prototype . orderRefundedEnhanced = function ( track ) {
713
713
var orderId = track . orderId ( ) ;
714
714
var products = track . products ( ) ;
715
715
@@ -743,7 +743,7 @@ GA.prototype.refundedOrderEnhanced = function(track) {
743
743
* @param {Track } track
744
744
*/
745
745
746
- GA . prototype . addedProductEnhanced = function ( track ) {
746
+ GA . prototype . productAddedEnhanced = function ( track ) {
747
747
this . loadEnhancedEcommerce ( track ) ;
748
748
enhancedEcommerceProductAction ( track , 'add' ) ;
749
749
this . pushEnhancedEcommerce ( track ) ;
@@ -758,7 +758,7 @@ GA.prototype.addedProductEnhanced = function(track) {
758
758
* @param {Track } track
759
759
*/
760
760
761
- GA . prototype . removedProductEnhanced = function ( track ) {
761
+ GA . prototype . productRemovedEnhanced = function ( track ) {
762
762
this . loadEnhancedEcommerce ( track ) ;
763
763
enhancedEcommerceProductAction ( track , 'remove' ) ;
764
764
this . pushEnhancedEcommerce ( track ) ;
@@ -773,7 +773,7 @@ GA.prototype.removedProductEnhanced = function(track) {
773
773
* @param {Track } track
774
774
*/
775
775
776
- GA . prototype . viewedProductEnhanced = function ( track ) {
776
+ GA . prototype . productViewedEnhanced = function ( track ) {
777
777
var props = track . properties ( ) ;
778
778
var data = { } ;
779
779
@@ -793,7 +793,7 @@ GA.prototype.viewedProductEnhanced = function(track) {
793
793
* @param {Track } track
794
794
*/
795
795
796
- GA . prototype . clickedProductEnhanced = function ( track ) {
796
+ GA . prototype . productClickedEnhanced = function ( track ) {
797
797
var props = track . properties ( ) ;
798
798
var data = { } ;
799
799
@@ -813,7 +813,7 @@ GA.prototype.clickedProductEnhanced = function(track) {
813
813
* @param {Track } track
814
814
*/
815
815
816
- GA . prototype . viewedPromotionEnhanced = function ( track ) {
816
+ GA . prototype . promotionViewedEnhanced = function ( track ) {
817
817
var props = track . properties ( ) ;
818
818
819
819
this . loadEnhancedEcommerce ( track ) ;
@@ -835,7 +835,7 @@ GA.prototype.viewedPromotionEnhanced = function(track) {
835
835
* @param {Track } track
836
836
*/
837
837
838
- GA . prototype . clickedPromotionEnhanced = function ( track ) {
838
+ GA . prototype . promotionClickedEnhanced = function ( track ) {
839
839
var props = track . properties ( ) ;
840
840
841
841
this . loadEnhancedEcommerce ( track ) ;
0 commit comments