Google Analytics - ECommerce
Hi,
We have google up and running for regular page views but we seem to have problems with the E-commerce script. Could someone check this snippet to see if i'm missing something. Any help would be greatly appreciated. Thanks in advance
This script runs good on every page
------------------------------------------------------------------
<script type="text/javascript">
document.write(unescape("%3Cscript src='https://ssl.google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-6450809-2");
pageTracker._initData();
pageTracker._trackPageview("AddFundsSuccess");
</script>
------------------------------------------------------------------
This one does not
------------------------------------------------------------------
<script>
var pageTracker = _gat._getTracker("UA-6450809-2");
pageTracker._addTrans(
"1879001", // order ID - required
"Company", // affiliation or store name
"50.00", // total - required
"", // tax
"", // shipping
"Moncton", // city
"NB", // state or province
"Canada" // country
);
pageTracker._addItem(
"1879001", // item number
"Dep", // SKU/code - required
"Website", // product name
"Evoucher", // category or variation
"50.00", // unit price - required
"1" // quantity - required
);
pageTracker._trackTrans();
</script>
|