The analytics portion of this has been working great for me. The conversion has not been working however. I spent some time generating debug info, and am posting here in the hopes of getting some ideas for problems and fixes going.
I generated a test conversion through google search. The "Google Site Stats" tag did not show up on the checkout_success page, however the analytics and conversion tracking code did show up in the view source for the page. The conversion code looked like:
Code:
<!-- Google Code for purchase Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = 106937XXXX;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "FFFFFF";
if (0.01) {
var google_conversion_value = 0.01;
}
var google_conversion_label = "purchase";
//-->
</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/106937XXXX/?value=0.01&label=purchase&script=0">
</noscript>
This appears to me to be pretty close to the exact code snippet given for the conversion on the adwords site, with the exception that the label now says "purchase" instead of "JDY3CMufSxC12_X9Aw" and the " if (0.01) {" clause on the conversion value.
The tracking image https://www.googleadservices.com/pag...ion/106937XXXX does not show up in the page when I use FireBug, however when I manually enter the image URL in the browser it shows up fine.
There are two possible issues I can see at this point:
1) there is a page error "__utmSetTrans not defined", which refers to line one of the body of the page. does anyone have an idea what this code does or where it came from? A little google on the function name shows it to be related to google conversion tracking. I don't see where it should be defined however.
Code:
<body id="checkoutsuccessBody" onload="javascript:__utmSetTrans();">
2) I have the "Corner of Trust" contrib installed just after the point at which the conversion code is inserted. Perhaps this is causing a conflict. I will try removing that and see if it makes any difference and will report back later. I don't think this is the problem as conversion tracking also does not work on another site without Corner of Trust, but want to eliminate the possibility completely.
Thanks to anyone who read this far and has any suggestions for debugging steps.
Bookmarks