Google Analytics - eCommerce Tracking Help
Hi, I'm trying to add google e-commerce tracking but have no idea how "loop" the "pageTracker._addItem" variables.
It obviously works fine if only one product is ordered, but if multiple products are ordered it does not see it. I have no idea how to accomplish this with JavaScript.
Any help would be appreciated.
Here's the portion of code that needs to loop.
pageTracker._addItem(
"1234", // Order ID
"DD44", // SKU
"T-Shirt", // Product Name
"Green Medium", // Category
"11.99", // Price
"1" // Quantity
);
Thanks