Jump to content

How to add tracking code in footer.tpl?


Recommended Posts

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

×
×
  • Create New...