Jump to content

[SOLVED] How to add Woopra Code To Prestashop


Recommended Posts

  • 1 year later...
  • 1 year later...

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 answer

Regards

Link to comment
Share on other sites

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

×
×
  • Create New...