View Single Post
Old 12-02-2008, 04:22 AM   #1 (permalink)
eeg3697
Noogle
 
Join Date: Dec 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
eeg3697 is on a distinguished road
Question 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>
eeg3697 is offline   Reply With Quote