google analytics - Several options for checkout_option in GA Enhanced Ecommerce -


what best way register several options single checkout step ga enhanced ecommerce?

as documentation describes:

// called when user has completed shipping options. function onshippingcomplete(stepnumber, shippingoption) {   ga('ec:setaction', 'checkout_option', {     'step': stepnumber,     'option': shippingoption   });    ga('send', 'event', 'checkout', 'option', {      hitcallback: function() {        // advance next page.      }   }); } 

the problem collect shipping , payment option in 1 step, , track both selections. here our initial idea:

// called when user has completed shipping , payment options. function onstepcomplete(stepnumber, shippingoption,paymentoption ) {   ga('ec:setaction', 'checkout_option', {     'step': stepnumber,     'option': shippingoption   });  ga('ec:setaction', 'checkout_option', {     'step': stepnumber,     'option': paymentoption   });    ga('send', 'event', 'checkout', 'option', {      hitcallback: function() {        // advance next page.      }   }); } 

would work expected? afterwards segment correctly?

i'm afraid options exclusive , act dimension in new enhanced checkout funnel reports ga. if want analyse shipping method works better, cannot mix payment method, both must different dimensions since values of dimension exclusive.

i separate shipping , payment in 2 separate steps each 1 own dimension shipping/payment, if have onestep checkout (quite normal nowadays) can create many steps want.

take enhanced ecommerce demo store, here presenting payment methods in step 2 when user hits selector in order chose visa/transfer/etc step 3 created.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -