dbarretoAcro Posted April 27, 2015 Share Posted April 27, 2015 Hi,I have to add a google analytics tracking script in the ordering process of my shop (1.6.0.9). The code looks like this : // First script – start ecommerce tracking ga('require', 'ecommerce'); // Second script – for each order ga('ecommerce:addTransaction', { 'id': '1234', 'affiliation': 'credit card', 'revenue': '840.00', 'shipping': '0', 'tax': '34.80' }); // Third function - Must be called for each product in an order ga('ecommerce:addItem', { 'id': '1234', 'name': 'Product Name', 'sku': 'Product Name', 'category': 'Category Name', 'price': '840.00', 'quantity': '1' }); // Fourth function - Send the data to Google Analytics ga('ecommerce:send'); I have two problems, I do not know where do i have to put this code and I do not know wich variables to use to get all the values I need.Thanks in advance for your help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now