Guest Posted April 14, 2007 Posted April 14, 2007 Hello Everyone, I am setting up the conversion value in my google adwords account. Therefore I need the variable that will tell to google what is the amount of the order. This javascript code is placed in the checkout_success.php page. Can everyone help me and tell me this code : It should something like <?php echo order_total; ?> It would be even better if somebody could tell me the variables : order_id product_id Thank you for your help Morgan.
zhexiang Posted April 19, 2007 Posted April 19, 2007 I thought Google Adwords will provide the code for you to paste ...
Guest Posted April 20, 2007 Posted April 20, 2007 I thought Google Adwords will provide the code for you to paste ... Actually I don't need the google code, I have it, I just need the variable of Oscommerce that I will include in the google code : <!-- Google Code for purchase Conversion Page --> <script language="JavaScript" type="text/javascript"> <!-- var google_conversion_id = 10240349; var google_conversion_language = "fr"; var google_conversion_format = "1"; var google_conversion_color = "FFFFFF"; if (XXXXXXXX) { var google_conversion_value = XXXXXXXX; } var google_conversion_label = "purchase"; //--> </script> <script language="JavaScript" src="http://www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <img height=1 width=1 border=0 src="http://www.googleadservices.com/pagead/conversion/1062402349/imp.gif?value=XXXXXXXX&label=purchase&script=0"> </noscript> Anyone knows what is the variable to put instead of the XXXXXX Thanks
Floob Posted August 5, 2007 Posted August 5, 2007 Try this: http://www.oscommerce.com/community/contributions,4494/
Recommended Posts
Archived
This topic is now archived and is closed to further replies.