4organics Posted March 28, 2014 Share Posted March 28, 2014 Hi, I am trying to add some conversion tracking snippets to my order confirmation, but I am not a programmer and need some guidance on how it is done. Where can I learn about how to structure code in template files, i.e. using literal tags, etc? I am trying to add a bing conversion code and every variation I try just causes an error. I put the literal tags around the whole snippet, around just the parts with data, etc and nothing works. Also, shouldn't I be able to pick up the total_to_pay value from the order_confirmation hook to pass it into the revenue field? If not, do I add it from the orderconfirmation.php script so it passes through to the tpl? I have several tracking codes I would like to add, so if I can understand how it is done, I can work on the rest. I just need a guiding push in the right direction. The bing code looks like this: <script type="text/javascript"> if (!window.mstag) mstag = {loadTag : function(){},time : (new Date()).getTime()}; </script> <script id="mstag_tops" type="text/javascript" src="//flex.msn.com/mstag/site/5d2eedf9-5440-4a5f-8eef-0acd1732a7a8/mstag.js"></script> <script type="text/javascript">mstag.loadTag("analytics", {dedup:"1",domainId:"XXXXXXX",type:"1",revenue:"",actionid:"180467"})</script> <noscript> <iframe src="//flex.msn.com/mstag/tag/5d2eedf9-5440-4a5f-8eef-0acd1732a7a8/analytics.html?dedup=1&domainId=XXXXXXX&type=1&revenue=&actionid=180467" frameborder="0" scrolling="no" width="1" height="1" style="visibility:hidden;display:none"> </iframe> </noscript> Thanks for any help. I have looked everywhere trying to learn how this works and cannot find an answer. Link to comment Share on other sites More sharing options...
Recommended Posts