Here is the sample conversion code for custom values:
Code: Select all
<!-- Google Code for Purchase Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1234567890;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "666666";
var google_conversion_label = "xxx-XXx1xXXX123X1xX";
var google_conversion_value = 1;
if (<? echo $totalValue ?>) {
var google_conversion_value = <? echo $totalValue ?>
var google_conversion_currency = <? echo $currency ?>
}
var google_conversion_currency = "USD";
/* ]]> */
</script>
<script type="text/javascript"
src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<img height=1 width=1 border=0
src="//www.googleadservices.com/pagead/
conversion/1234567890/?value=
<? echo $totalValue ?>&conversion_currency=<? echo $currency ?>
&label=Purchase&script=0">
</noscript>
Also, I'm not sure if I need $currency to be a variable since all of our sales are in us currency.
if it helps here is the article i pulled the sample code from:
https://support.google.com/adwords/answer/6095947?hl=en
Thanks,
Aaron