[development] Google Conversion

Lynn Stott (Stott Design) lynn at stottdesign.com
Wed Dec 8 23:15:51 UTC 2010


Hi,

Using Ubercart, I'm adding the Google adwords conversion code to the  
bottom of the checkout complete page. How would I capture the order  
total? And/or is there a better way to do this? I've used this method  
the past 3 months but got zero conversions. It seems this person has  
the same issue (see last comment)... http://www.ubercart.org/forum/support/1478/google_conversion_tracking

<!-- Google Code for I/O Bio Purchase Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = xxxxxxxx;
var google_conversion_language = "en";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "WHb7CN6x6wEQtrzd-AM";
var google_conversion_value = 0;
if (<?php echo $order->order_total; ?>) {
   google_conversion_value = <?php echo $order->order_total; ?>;
}
/* ]]> */
</script>
<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js 
">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/1058496054/?value= 
<?php echo $order->order_total; ?>&amp;label=WHb7CN6x6wEQtrzd- 
AM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>


Thanks,
Lynn





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20101208/865c7d7a/attachment.html 


More information about the development mailing list