lundi 27 mars 2017

Google eCommerce Tracking Script -Adding Custom Properties

I have been using google analytics for a while, and basically, I can't get the accurate revenue statistics.

I would like to add a property to be able to do the following: View both-

  1. the price that reflects unit price+tax+shipping

  2. and the unit price only (without tax+shipping)

Additionally, cancelled orders still appear in the ga statistics and I would like them not to appear in revenue statistics, rather in a custom group automatically.

_gaq.push(['_addTrans',
'1234',           // transaction ID - required
'Womens Apparel', // affiliation or store name
'28.28',          // total - required; Shown as "Revenue" in the
// Transactions report. Does not include Tax and Shipping.
'1.29',           // tax
'15.00',          // shipping
'San Jose',       // city
'California',     // state or province
'USA'             // country
// pure price without tax+shipping
]);



Aucun commentaire:

Enregistrer un commentaire