Google Adwords Tracking
-
- Lieutenant (LT)
- Posts: 80
- Joined: Fri Sep 19, 2008 11:39 am
Google Adwords Tracking
Hello,
Has anyone had any luck tracking Google Adwords conversions (not be confused with Analytics - this one has been set up). Google gave the following code to put in the body of the page (i removed some confidential numbers with x's). I put in the body of the page but i still do not get conversions recorded - the code is in the receipt.aspx page. I tested by clicking on a live ad and then trying to put an order through and see but nothing showed up. Thank you!
Serge
ps the code was automatically provided by google for https pages.
==================================
<!-- Google Code for Conversion Tracking Adwords Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = xxxxxxxxxx;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "xxxxxxxxxxxxxxxxxxx";
var google_conversion_value = 0;
/* ]]> */
</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 ... N&script=0"/>
</div>
</noscript>
Has anyone had any luck tracking Google Adwords conversions (not be confused with Analytics - this one has been set up). Google gave the following code to put in the body of the page (i removed some confidential numbers with x's). I put in the body of the page but i still do not get conversions recorded - the code is in the receipt.aspx page. I tested by clicking on a live ad and then trying to put an order through and see but nothing showed up. Thank you!
Serge
ps the code was automatically provided by google for https pages.
==================================
<!-- Google Code for Conversion Tracking Adwords Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = xxxxxxxxxx;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "xxxxxxxxxxxxxxxxxxx";
var google_conversion_value = 0;
/* ]]> */
</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 ... N&script=0"/>
</div>
</noscript>
Re: Google Adwords Tracking
Have a look at this thread
viewtopic.php?f=42&t=11325
viewtopic.php?f=42&t=11325
-
- Lieutenant (LT)
- Posts: 80
- Joined: Fri Sep 19, 2008 11:39 am
Re: Google Adwords Tracking
Thanks Mazhar - i'll give it a try.
Cheers
Serge
Cheers
Serge
Re: Google Adwords Tracking
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?
Best Regards,
Alan Wills
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>
Alan Wills
Re: Google Adwords Tracking
Create a new control, update your custom details accordingly and then make use of that control in "Footer With Google Analytics" scriplet.
Re: Google Adwords Tracking
I think it should only be used on the Receipt page. Adding the control to "Footer With Google Analytics" may result in it getting invoked on all pages where Google Analytics Footer is used... which may be incorrect..
Re: Google Adwords Tracking
Created user control for Google AdWords Tracking as follows, then made use of the control in "Footer With Google Analytics" scriplet. I'm getting following error at bottom of checkout page.
ERROR at bottom of checkout page
Anyone have suggestions for improvement to the tracking code or implementation of the code to get it working properly?
Best Regards,
Alan Wills
PracticeRange.com
Code: Select all
<%@ Control Language="C#" ClassName="GoogleAdWordsWidget" %>
<!-- 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=<%= Order.TotalCharges%>&label=gZVUCM3t2AEQ78iA_gM&guid=ON&script=0"/>
</div>
</noscript>
Code: Select all
[[ConLib:Custom/GoogleAdWordsWidget]] e:\hshome\practicerange\practicerange.com\ConLib\Custom\GoogleAdWordsWidget.ascx(12): error CS0120: An object reference is required for the nonstatic field, method, or property 'CommerceBuilder.Orders.Order.TotalCharges.get'
Best Regards,
Alan Wills
PracticeRange.com
Re: Google Adwords Tracking
You can't use this control on checkout pages because this control expects a valid order information available on page. The order information is available after completion of checkout page means receipt page or my order page.