Google ecommerce
Having trouble getting product information showing up in Google Analytics, I'm using this code to cycle through the cart to provide the info.
Any ideas on what I'm doing wrong
Cheers
<?php
while (!$eCart1->EOF()) {
?>
_gaq.push(['_addItem',
'<?php echo $_SESSION['orderid']; ?>', // transaction ID - required
'<?php echo $eCart1->DisplayInfo("ID"); ?>', // SKU/code - required
'<?php echo $eCart1->DisplayInfo("Description"); ?>', // product name
'<?php echo $eCart1->DisplayInfo("Price"); ?>', // unit price - required
'<?php echo $eCart1->DisplayInfo("Quantity"); ?>' // quantity - required
]);
<?php
$eCart1->MoveNext();
}
$eCart1->MoveFirst();
?>