2
2
25hp2017-09-22 08:57:30
Google
25hp, 2017-09-22 08:57:30

How to track checkout stages in ec analitycs?

Hello everyone
. I want to send a step when clicking on the button in the eCommerce section Behavior during registration in the analytics. I followed this example
https://developers.google.com/analytics/devguides/... Checkout
process > Payment
But nothing is transferred, what could be the problem? Need something else to add? Thanks in advance for your reply!

<script>
ga('create', 'UA-105680803-1');
ga('require', 'ec');

function checkout(cart) {
  for(var i = 0; i < cart.length; i++) {
    var product = cart[i];
    ga('ec:addProduct', {
      'id': 'test2_000',
      'name': 'test2',
      'price': '10',
      'quantity': 1
    });
  }
}


ga('ec:setAction','checkout', {
    'step': 1,            
    'option': 'r_test_step_1'     
});
ga('send', 'pageview'); 
</script>

a50b9d961fee44e4a84475e088aa74db.png64979103e62a4a019d941e5317e1e6ff.png7eaa713e4f6d4e9ea081f65fc0b20e7d.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question