Google Analytics Conversion Tracking Adwords

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Google Analytics Conversion Tracking Adwords

Post by Mike718NY » Mon Jun 15, 2009 10:10 am

The SEO company working on this site wanted me to add
Google Analytics by setting up Conversion Tracking on the site for Google Adwords.
Here are the instructions they gave me:

On the sale completion page have the following code run:

<!-- Google Code for Sale Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = xxxxxxxxxx;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "ffffff";
var google_conversion_label = "EbkijdkISlxeiAEQ6OH__vM";
if (23.99) {
var google_conversion_value = 23.99;
}
//-->
</script>
<script language="JavaScript" src="http://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<img src="http://www.googleadservices.com/pagead/ ... 456400808/?
value=23.99&label=GdrdHCI65OIYHoiH__vM&guid=ON&script=0"/>
</noscript>

Notice the 3 instances of "23.99" above. Each of those need to be replaced with the actual decimal value of the sale - basically the dollar amount of the sale without the $ sign.
---------------------------

Is this something already build into AC7 or do I have to add this?
I already enable Google Analytics in: Administration > Configure > Page Tracking

Will adding [[ConLib:GoogleAnalyticsWidget]]
in the "Footer With Google Analytics" on the Receipt page do it?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Google Analytics Conversion Tracking Adwords

Post by mazhar » Mon Jun 15, 2009 10:32 am

Read following help section for OOB page tracking feature
http://help.ablecommerce.com/mergedProj ... acking.htm

dappy2
Commander (CMDR)
Commander (CMDR)
Posts: 114
Joined: Wed Jan 18, 2006 5:53 pm
Contact:

Re: Google Analytics Conversion Tracking Adwords

Post by dappy2 » Tue Jun 16, 2009 6:15 am

I have this on Conlib/ReceiptPage.ascx at the bottom after the AffiliateTracker User Control

Code: Select all

<!-- Google Code for Purchase/Sale Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = xxxxxxxxxxxx;
var google_conversion_language = "en_US";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "xxxxxxxxxxxxxxxxx";
if (<%= Order.TotalCharges%>) {
  var google_conversion_value = <%= Order.TotalCharges%>;
}
//-->
</script>
<script language="JavaScript" src="https://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<img height="1" width="1" border="0" src="https://www.googleadservices.com/pagead/conversion/xxxxxxxxxx/?value=<%= Order.TotalCharges%>&label=xxxxxxxxxxxxxxxxx&guid=ON&script=0"/>
</noscript>
Note the "xxxxx" in multiple places that you will need to replace. This should work, but I might have done some other code although I can't find it right now. It will return 4 decimal places xx.xxxx but it works in Analytics/Adwords for me.

dappy

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Google Analytics Conversion Tracking Adwords

Post by Mike718NY » Mon Jun 22, 2009 11:50 am

dappy, thanks for that code

I tried it, but it gives the annoying "This page contains secure and nonsecure..." pop-up window.

Is there a secure version of this code, like there is for the
regular google analytics that would make the pop-up box go away?
example:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'
.............

saiho01
Ensign (ENS)
Ensign (ENS)
Posts: 13
Joined: Wed Jun 10, 2009 10:35 pm

Re: Google Analytics Conversion Tracking Adwords

Post by saiho01 » Wed Jul 22, 2009 11:21 pm

dappy2 wrote:I have this on Conlib/ReceiptPage.ascx at the bottom after the AffiliateTracker User Control

Code: Select all

<!-- Google Code for Purchase/Sale Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = xxxxxxxxxxxx;
var google_conversion_language = "en_US";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "xxxxxxxxxxxxxxxxx";
if (<%= Order.TotalCharges%>) {
  var google_conversion_value = <%= Order.TotalCharges%>;
}
//-->
</script>
<script language="JavaScript" src="https://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<img height="1" width="1" border="0" src="https://www.googleadservices.com/pagead/conversion/xxxxxxxxxx/?value=<%= Order.TotalCharges%>&label=xxxxxxxxxxxxxxxxx&guid=ON&script=0"/>
</noscript>
Note the "xxxxx" in multiple places that you will need to replace. This should work, but I might have done some other code although I can't find it right now. It will return 4 decimal places xx.xxxx but it works in Analytics/Adwords for me.

dappy
Hey Dappy,

This is great info. Correct me if I am wrong, I understand the code you have provided is basically the code that adwords provide, no? I am currently using a custom page for the checkout/receipt.aspx. When I try to edit the page, this is all I see
[[ConLib:Custom\ReceiptPage HandleFailedPayments="true"]]

Can I simply add the code you provided (after replacing the xxx of course) below the [[conlib......]]? GA has been really sensitive regarding ecommerce data, I don't the Adword code to throw a wrench in our site. Any advice would be greatly appreciated.

Warmly,
Sai

Post Reply