Hey there,
My client has asked me to implement GA ecommerce code in their ecommerce website. So I added the code to the success page. I just purchased an item from the site, and the following is the code that was generated. I have already checked the settings of the site in GA and the site is set as a Ecommerce site. Can anybody see anything wrong with this code and explain why its not working?!
Regards, Fiona
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-XXXXXXXX-5"); pageTracker._trackPageview(); pageTracker._addTrans( "502085","","35.5","0","5.5","Test","Tyne","United Kingdom" ); pageTracker_addItem("502085","229","INA Crystals Restoring Night Serum","FeaturedHome","30","1");pageTracker._trackTrans();} catch(err){}