Page 1 of 1

Google Adwords Conversion Tracking

Posted: Mon Sep 13, 2010 7:47 am
by AlanW
I've followed this thread and viewtopic.php?f=42&t=11325. I still don't understand where to put the AdWords tracking code.
I have Google Analytics set up properly but the conversions are not being recorded for AdWords.

My Checkout/Receipt.aspx page is using the footer with Google Analytics Widget.

Should the following adwords code be added to existing GoogleAnalyticsWidget.ascx ? Or do I need to create a separate widget and add this new widget to the "Footer With Google Analytics" scriplet?

Code: Select all

<!-- HTTP Google Code for Sale Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1069556847;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "gZVUCM3t2AEQ78iA_gM";
var google_conversion_value = 0;
if (<%= Order.TotalCharges%>) {
  var google_conversion_value = <%= Order.TotalCharges%>;
}
//-->
</script>
<script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="https://www.googleadservices.com/pagead/conversion/1069556847/?value=50&label=gZVUCM3t2AEQ78iA_gM&guid=ON&script=0"/>
</div>
</noscript>
Best Regards,
Alan Wills

Re: Google Adwords Conversion Tracking

Posted: Tue Sep 14, 2010 7:40 am
by mazhar
You need to create a separate user controls in conlib/custom folder. Then make use of that control in your desired scriptlet.