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 noscript 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 an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...