I am trying desperately to get the ecommerce tracking working from analytics. I was trying to do it without installing a module...and searched for hours and only found a couple of related threads....

This is what Google is suggesting to pull in the data...I have tried this code in the html_header below the google analytics tracking code...I have tried it in the footer in a checkout success folder in my templates file....I have tried it in the tpl_main_page file...these were all suggested areas...and NOTHING is working...

I finally downloaded the simple google analytics mod and that is not working either (but it seems there is a lot of confusion with that mod recently)...I have been at this for 2 days and the client is launching a huge adowrds campaign this week and I still do not have the e-commerce working...I can see the Funnel tracking working and the regular analytics are fine...its just the e-commerce......

Can anyone help me....I would rather not use the module and hand code the necessary information....

here is what Google is telling me to do (I am hoping I got the code right for the fields)...but where does it need to go ..... or I guess is it even right?!?!

ANY HELP IS SO APPRECIATED, I am desperate to get this working and have spent way too much time on this.....

<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxx-1']);
_gaq.push(['_setSiteSpeedSampleRate', 10]);

'.$order->fields['orders_id'].', // order ID - required
'Store Name', // affiliation or store name
'.$orders['ot_total'].', // total - required
'.$order->fields['ot_tax'].', // tax
'.$order->fields['ot_shipping'].', // shipping
'.$order->fields['city'].', // city
'.$order->fields['state'].', // state or province
'.$order->fields['country'].' // country

// add item might be called for every item in the shopping cart
// where your ecommerce engine loops through each item in the cart and
// prints out _addItem for each
'.$order->fields['orders_id'].', // order ID - required
'.$products->fields['skucode']', // SKU/code - required
'.$products->fields['products_name'].', // product name
'.$category->fields['categories_name'].', // category or variation
'.$products->fields['final_price'].', // unit price - required
'.$products->fields['products_quantity'].' // quantity - required
_gaq.push(['_trackTrans']); //submits transaction to the Analytics servers

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);