Commit d881beafe2299dd32c216615c0856f63cfcd5954
1 parent
fed9ec18
image size
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
frontend/views/basket/success.php
| ... | ... | @@ -23,11 +23,11 @@ if(isset($variants) && isset($order)){ |
| 23 | 23 | 'name': {$row['name']}, // Имя товара |
| 24 | 24 | 'price': {$row['price']}, // Цена товара |
| 25 | 25 | 'quantity': {$row['count']} // Количество |
| 26 | - }); | |
| 27 | - ga('ecommerce:send');"; | |
| 28 | - } | |
| 26 | + });"; | |
| 29 | 27 | |
| 30 | - $this->registerJs ($orderData, View::POS_HEAD); | |
| 28 | + } | |
| 29 | + $orderData = "ga('ecommerce:send');"; | |
| 30 | + $this->registerJs ($orderData, View::POS_BEGIN); | |
| 31 | 31 | |
| 32 | 32 | } |
| 33 | 33 | ... | ... |