We are testing google Adwords conversion code today, but we've made a little different changes: We do have google analytics plugin, (module folder called "GAnalytics") wich tells analytics that a order has been made. We did add some code to the /modules/ganalytics/header.tpl to be able to track the order total amount with both analytics and adwords, here is what we've done: At the end of /modules/ganalytics/header.tpl we added the first piece of adwords conversion code:
<!-- Google Code for YOUR Conversion Page -->
[removed]
/* <![CDATA[ */
var google_conversion_id = XXXXXXXXXXXXX;
var google_conversion_language = "XX";
var google_conversion_format = "X";
var google_conversion_color = "ffffff";
var google_conversion_label = "XXXXXXXXXXXXXXXXXX";
var google_conversion_value = {$trans.total};
/* ]]> */
[removed]
Do not copy and paste this code, use yours Note XXX are filled with your data, and the only line you should change is the var google_conversion_value one, removing the default 0 and adding {$trans.total}; The other part of adwords code, as you and others suggested, in the your_theme/order-confirmation.tpl (also at the end of it):
[removed]
[removed]
Do not copy and paste this code, use yours (XXX is filled by adwords tracking numbers, do not modify your code) Hope it helps.