Jump to content

(Solved) Statcounter code in Prestashop


ZuZu

Recommended Posts

  • 2 years later...
  • 3 months later...
  • 4 months later...
  • 1 year later...

Just to throw a pebble in the water on this one, from past experience with Statcounter the code ought to be placed just before the closing "body" tag of the 'page', to get it as far after the rest of the code as possible. With that in mind, placing the code in footer.tpl might be a better idea.

 

Statcounter advice suggests this too:

http://statcounter.com/support/knowledge-base/230/?PHPSESSID=9c51af8d6c209a91ffd7e6777e35185a.

Shame the addon mentioned there doesn't seem to be around anymore...

Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...

I tried to insert statcounter code in footer.tlp, but the statcounter code is not shown in the webshop html code. Any idea why ?

 

footer.tlp:

...

<!-- Footer -->
<div id="footer">{$HOOK_FOOTER}</div>
</div>
{/if}
 
<!-- Start of StatCounter Code for Default Guide -->
<script type="text/javascript">
...
<!-- End of StatCounter Code for Default Guide -->
 
</body>
</html>
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...