Deepak Palreddy Posted July 10, 2014 Share Posted July 10, 2014 Hello every one, I would like to add tracking code in prestashop with image. my script is like below.. ------------------------------------------------------------------------------------------------------------------ <script type="text/javascript"> var pkBaseURL = (("http:" == document.location.protocol) ? "URL" : "URL"); document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", NUMBER); piwikTracker.trackPageView(); piwikTracker.enableLinkTracking(); } catch (err) { } </script> <noscript> <p><img src="IMAGE LINK" style="border:0" alt="" /></p> </noscript> ----------------------------------------------------------------------------------------------------------------------- I pasted the above script in footer.tpl file before </body> tag. but <noscript> is getting separated from the rest of the code.. I want it at the end of the script but it is appearing at the top of the script library... Could any one of you please suggest me.... Link to comment Share on other sites More sharing options...
vekia Posted July 11, 2014 Share Posted July 11, 2014 hello but script work well? or you're only affraid that code is separated? unfortunately prestashop move all js to the footer section it can affect some useful scripts / widgets Link to comment Share on other sites More sharing options...
Deepak Palreddy Posted July 11, 2014 Author Share Posted July 11, 2014 Thank you for the response, What ever analytical code we are placing in footer.tpl, it is getting moved to the script tag. We need the code to remain wherever we pasted. Because the rest of the code is getting merged with the noscript tag image. Link to comment Share on other sites More sharing options...
Recommended Posts