Hoodgrown Posted May 10, 2009 Share Posted May 10, 2009 I'm trying to add Woopra ( http://www.woopra.com/ ) code to Prestashop. It just like Google Analytics and has to go before the "</body>" tag.Whenever I add it to the footer.tpl right before the </body> tag, I get an error. Any ideas. Link to comment Share on other sites More sharing options...
Star Posted May 10, 2009 Share Posted May 10, 2009 Add it on header.tpl in the theme folder.AFTER these codes:<body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}> {if !$content_only} <!-- Header --> Link to comment Share on other sites More sharing options...
Hoodgrown Posted May 10, 2009 Author Share Posted May 10, 2009 thanks... Link to comment Share on other sites More sharing options...
pasko Posted June 13, 2010 Share Posted June 13, 2010 Hi,Does not seems to work for me on PS 1.3Regards. Link to comment Share on other sites More sharing options...
NassimBojji Posted July 7, 2011 Share Posted July 7, 2011 Hi,In PrestaShop V.1.4.3 where I put the code <!-- Start of Woopra Code --> [removed] var woo_settings = {idle_timeout:'300000', domain:'mywebsite.com'}; (function(){ var wsc = document.createElement('script'); wsc.src = document.location.protocol+'//static.woopra.com/js/woopra.js'; wsc.type = 'text/javascript'; wsc.async = true; var ssc = document.getElementsByTagName('script')[0]; ssc[removed].insertBefore(wsc, ssc); })(); [removed] <!-- End of Woopra Code --> exactly in the header.tpl ? And I must put [literal} JavaScript code Woopra {/literal} because v1.4.3 used smarty ?? or not ?Thanks for your answerRegards Link to comment Share on other sites More sharing options...
NassimBojji Posted July 7, 2011 Share Posted July 7, 2011 I found the solution for version 1.4.3 to install Woopra here the exact code that must be inserted in the file header.tpl line from 76 to 88 {literal} [removed] var woo_settings = {idle_timeout:'300000', domain:'mywebsite.com'}; (function(){ var wsc = document.createElement('script'); wsc.src = document.location.protocol+'//static.woopra.com/js/woopra.js'; wsc.type = 'text/javascript'; wsc.async = true; var ssc = document.getElementsByTagName('script')[0]; ssc[removed].insertBefore(wsc, ssc); })(); [removed] {/literal} Regards Link to comment Share on other sites More sharing options...
Recommended Posts