Answer the question
In order to leave comments, you need to log in
Standard google ecommerce on wordpress?
The essence of the question is this. I want to set up tracking "Standard e-commerce" from Google on the wordpress + woocommerce site, I have already indicated everything I need in the header and body, the gtm code that I needed, there is one item left, on the "Thank you for the order" page in my case it is order-received add the code of such plan
<script>
window.dataLayer = window.dataLayer || []
dataLayer.push({
'transactionId': '1234',
'transactionAffiliation': 'Acme Clothing',
'transactionTotal': 38,26,
'transactionTax': 1,29,
'transactionShipping': 5,
'transactionProducts': [{
'sku': 'DD44',
'name': 'футболка',
'category': 'одежда',
'price': 11,99,
'quantity': 1
},{
'sku': 'AA1243544',
'name': 'носки',
'category': 'одежда',
'price': 9,99,
'quantity': 2
}]
});
</script>
Answer the question
In order to leave comments, you need to log in
Take the ready-made plugin https://ru.wordpress.org/plugins/woocommerce-googl...
It contains both standard and extended trading. You just need to select the checkboxes.
The main thing is not to forget to check all the settings on the Google side. There are also enough checkboxes.
If you really want to do it yourself - disassemble the plug-in, study it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question