What to pass in for the eCommerce integration Checkout Steps?

The eCommerce integration documentation is not clear on what to pass for the eCommerce integration checkout steps? There are the two events ‘Checkout Step Viewed’ and ‘Checkout Step Completed’ you can send over which would correspond to the steps you normally assign in the checkout funnel in GA, but I am not seeing how you would pass in the specific checkout step ID to identify each step in the funnel for GA? For instance in our code we pass them like this:

ga(‘ec:setAction’, ‘checkout’, { ‘step’: 1 });

and the steps are the steps we set up in GA for our checkout funnel. I don’t see any way to pass the step values to the checkout steps for Zaraz to pass onto GA?

Hello @kendallb, thank you for your note!

You can use a parameter step with the value of a number representing the checkout step. Like this:

zaraz.ecommerce('Checkout Step Viewed', {
  step: 1,
}); 

I noticed that this was missing on the docs, and we will fix that asap. Thanks for bringing it to our attention, and apologies for the inconvenience.

Excellent thanks. I assumed it would accept step, so that is what I have coded up so far. Yet to test it though :slight_smile: