Why does not the sending of the price of goods in e-Commerce Google Analytics?

There's a script sending data about the purchase in GA on the page successful payment:
//Here the code, taken verbatim
ga('require', 'ecommerce', 'ecommerce.js');
ga('ecommerce:addTransaction', {
 'id': '<?php echo $id ?>',
 'affiliation': 'My store',
 '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 ?>'

I.e. after successful payment, the customer is redirected to this page where the code is running (instead of PHP tags, respectively, are substituted for the required values).
But upon arrival in GA see the following picture:
Despite the fact that the successful payment on the side of the payment service are recorded and goals for entering the page successful payment run.
How to be? In what direction to dig?

Thanks in advance!
July 9th 19 at 10:51
0 answer

Find more questions by tags Google AnalyticsYandex.Metrica