Yahoo SEM Conversion Tracking
Posted: Wed Oct 07, 2009 1:20 pm
I am trying to use Yahoo's code to track conversions through their SEM program. They require the code to be between the Head tags on the receipt page.
Here is the code:
<!-- yahoo SEM tracking code -->
<SCRIPT language="JavaScript" type="text/javascript">
<!-- Yahoo! Inc.
window.ysm_customData = new Object();
window.ysm_customData.conversion = "transId='<%=Order.OrderId%>',currency=USD,amount='<%=Order.TotalCharges%>'";
var ysm_accountid = "1HN52F8HQCG61MTLRHC3954OAQ8";
document.write("<SCR" + "IPT language='JavaScript' type='text/javascript' "
+ "SRC=//" + "srv1.wa.marketingsolutions.yahoo.com" + "/script/ScriptServlet" + "?aid=" + ysm_accountid
+ "></SCR" + "IPT>");
// -->
</SCRIPT>
I have tried to put this code in the CheckOutHeader.htm and several other places but it is not working.
I did put it in the Receipt.aspx and it works however, it won't send the data to Yahoo becuase they require it to be in between the HEAD tags on the receipt page which would be in the CheckoutHeader.htm
Any assistance would be greatly appreciated.
Thank you
Here is the code:
<!-- yahoo SEM tracking code -->
<SCRIPT language="JavaScript" type="text/javascript">
<!-- Yahoo! Inc.
window.ysm_customData = new Object();
window.ysm_customData.conversion = "transId='<%=Order.OrderId%>',currency=USD,amount='<%=Order.TotalCharges%>'";
var ysm_accountid = "1HN52F8HQCG61MTLRHC3954OAQ8";
document.write("<SCR" + "IPT language='JavaScript' type='text/javascript' "
+ "SRC=//" + "srv1.wa.marketingsolutions.yahoo.com" + "/script/ScriptServlet" + "?aid=" + ysm_accountid
+ "></SCR" + "IPT>");
// -->
</SCRIPT>
I have tried to put this code in the CheckOutHeader.htm and several other places but it is not working.
I did put it in the Receipt.aspx and it works however, it won't send the data to Yahoo becuase they require it to be in between the HEAD tags on the receipt page which would be in the CheckoutHeader.htm
Any assistance would be greatly appreciated.
Thank you