[email protected] wrote:I have a confusion on Code to place at console. Do I need to keep the exact code as you provided above or should i replace it with the real order data?
Ok let me clear. First you need to confirm that the google analytic code of ecommerce is working. So for that reason you intentionally push a data from console. It is only for test.
So at console hit
ga('ecommerce:addItem', {
'id': '1234', // Transaction ID. Required.
'name': 'Fluffy Pink Bunnies', // Product name. Required.
'sku': 'DD23444', // SKU/code.
'category': 'Party Toys', // Category or variation.
'price': '11.99', // Unit price.
'quantity': '1' // Quantity.
});
ga('ecommerce:send');
if it show at analytic. Then the google analytic code of ecommerce is ok. I try to know is the analytic code is ok or not for you site.
Is it clear now?