S
S
skdon2016-09-09 16:07:18
opencart
skdon, 2016-09-09 16:07:18

Why doesn't Opencart e-commerce work?

You need to set up e-commerce on Opencart.
The code is given on the checkout page

<!-- Start Yandex Ecommerce -->
<script>
dataLayer.push({
"ecommerce": {
"purchase": {
"actionField": {
"id" : "815",
"affiliation": "http://xxx.ru",
"revenue": "100000"
},
"products": [
{
"id": "815",
"name": "Товар1 125.39",
"price": "2600.0000",
"brand": "Товар1 125.39",
"category": "",
"variant": "",
"quantity": "1"
},
]
}
}
});
</script>
<!-- End Yandex Ecommerce -->

The counter code is also set. The string ecommerce:"dataLayer" is present.
Tell me what I'm doing wrong.

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