A
A
Anton Neverov2016-05-28 11:48:09
Google Analytics
Anton Neverov, 2016-05-28 11:48:09

Why doesn't product price submission work in Google Analytics eCommerce?

Hello!
There is such a script for sending purchase data to GA on the successful payment page:

//Здесь код счётчика, взятый без изменений
ga('require', 'ecommerce', 'ecommerce.js');
ga('ecommerce:addTransaction', {
  'id': '<?php echo $id ?>',
  'affiliation': 'Мой магазин',
  'revenue': '<?php echo $price ?>',
  'shipping': '',
  'tax': ''
});
ga('ecommerce:addItem', {
  id: '<?php echo $id ?>',
  name: '<?php echo $name_item ?>',
  category: '<?php echo $cat_item ?>',
  price: '<?php echo $price_item ?>',
  quantity: '<?php echo $count_item ?>'
});
ga('ecommerce:send');
ga('ecommerce:clear');

Those. after successful payment, the client is redirected to this page where this code works (instead of PHP tags, respectively, the necessary values ​​are substituted).
But when I enter GA, I see the following picture:
REsTGN5.png
Despite the fact that successful payments are registered on the side of the payment acceptance service, and the goals for entering the successful payment page are fulfilled.
How to be? In which direction to dig?
Thanks in advance!

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