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?
Google Analytics Conversion Tracking Adwords
Re: Google Analytics Conversion Tracking Adwords
Read following help section for OOB page tracking feature
http://help.ablecommerce.com/mergedProj ... acking.htm
http://help.ablecommerce.com/mergedProj ... acking.htm
Re: Google Analytics Conversion Tracking Adwords
I have this on Conlib/ReceiptPage.ascx at the bottom after the AffiliateTracker User Control
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
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>
dappy
Re: Google Analytics Conversion Tracking Adwords
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'
.............
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'
.............
Re: Google Analytics Conversion Tracking Adwords
Hey Dappy,dappy2 wrote:I have this on Conlib/ReceiptPage.ascx at the bottom after the AffiliateTracker User ControlNote 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.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>
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