[development] Google Conversion

Lee Rowlands contact at rowlandsgroup.com
Wed Dec 8 23:29:06 UTC 2010


I could be wrong but I believe that Ubercart comes with the
uc_googleanalytics module which does this for you.

On Wed, 2010-12-08 at 16:15 -0700, Lynn Stott (Stott Design) wrote:

> 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/20101209/20b951fb/attachment.html 


More information about the development mailing list