Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google adwords - conversion rate


Guest

Recommended Posts

Posted

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.

Posted

Anyone could help me please ?

 

Morgan10

Posted
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

  • 3 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...