V
V
Vitaly Frolov2017-04-26 18:23:38
Google
Vitaly Frolov, 2017-04-26 18:23:38

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>

I don’t understand what variables I need to specify if I have wordpress?
Here it is indicated what fields you need to specify in, but it didn’t really give me anything.
https://support.google.com/tagmanager/answer/61071...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WordPress WooCommerce, 2017-04-27
@maxxannik

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 question

Ask a Question

731 491 924 answers to any question