<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.0">
</HEAD>
<BODY>
I could be wrong but I believe that Ubercart comes with the uc_googleanalytics module which does this for you.<BR>
<BR>
On Wed, 2010-12-08 at 16:15 -0700, Lynn Stott (Stott Design) wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    Hi,
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    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)...&nbsp;<A HREF="http://www.ubercart.org/forum/support/1478/google_conversion_tracking">http://www.ubercart.org/forum/support/1478/google_conversion_tracking</A>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    &lt;!-- Google Code for I/O Bio Purchase Conversion Page --&gt;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    &lt;script type=&quot;text/javascript&quot;&gt;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    /* &lt;![CDATA[ */
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    var google_conversion_id = xxxxxxxx;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    var google_conversion_language = &quot;en&quot;;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    var google_conversion_format = &quot;2&quot;;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    var google_conversion_color = &quot;ffffff&quot;;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    var google_conversion_label = &quot;WHb7CN6x6wEQtrzd-AM&quot;;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    var google_conversion_value = 0;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    if (<FONT COLOR="#df512e">&lt;?php echo $order-&gt;order_total; ?&gt;</FONT>) {
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    &nbsp;&nbsp;google_conversion_value =&nbsp;&lt;?php echo $order-&gt;order_total; ?&gt;;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    }
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    /* ]]&gt; */
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    &lt;/script&gt;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    &lt;script type=&quot;text/javascript&quot; src=&quot;<A HREF="http://www.googleadservices.com/pagead/conversion.js">http://www.googleadservices.com/pagead/conversion.js</A>&quot;&gt;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    &lt;/script&gt;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    &lt;noscript&gt;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    &lt;div style=&quot;display:inline;&quot;&gt;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    &lt;img height=&quot;1&quot; width=&quot;1&quot; style=&quot;border-style:none;&quot; alt=&quot;&quot; src=&quot;<A HREF="http://www.googleadservices.com/pagead/conversion/1058496054/?value=">http://www.googleadservices.com/pagead/conversion/1058496054/?value=</A>&lt;?php echo $order-&gt;order_total; ?&gt;&amp;amp;label=WHb7CN6x6wEQtrzd-AM&amp;amp;guid=ON&amp;amp;script=0&quot;/&gt;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    &lt;/div&gt;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    &lt;/noscript&gt;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Thanks,
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Lynn
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>