tonymusante Posted June 22, 2015 Share Posted June 22, 2015 Hi, i would like to add histats counter to prestashop, how can i do it? I tried to add the counter code to /themes/themename/footer.tpl but it seems to not run i don't see any counter. Have you got any suggestion for me? Link to comment Share on other sites More sharing options...
tonymusante Posted June 23, 2015 Author Share Posted June 23, 2015 up hoping in some help... Thank you Link to comment Share on other sites More sharing options...
tonymusante Posted June 25, 2015 Author Share Posted June 25, 2015 up again Link to comment Share on other sites More sharing options...
irrelevant Posted June 25, 2015 Share Posted June 25, 2015 Whereabouts in the footer.tpl did you put it? There are a lot of conditional blocks in there - Have you done a view-source on the page to check if the code is actually being included? I also see they have a hidden-tracker option which would presumably not be visible to normal browsing; did you use that? Link to comment Share on other sites More sharing options...
tonymusante Posted June 26, 2015 Author Share Posted June 26, 2015 thank you for the reply, the counter aren't the invisible one this is my footer.tpl {if !$content_only} </div><!-- #center_column --> {if isset($right_column_size) && !empty($right_column_size)} <div id="right_column" class="col-xs-12 col-sm-{$right_column_size|intval} column">{$HOOK_RIGHT_COLUMN}</div> {/if} </div><!-- .row --> </div><!-- #columns --> </div><!-- .columns-container --> <!-- Footer --> <div class="footer-container"> <!-- Histats.com (div with counter) --><div id="histats_counter"></div><!-- Histats.com START (aync)--><script type="text/javascript">var _Hasync= _Hasync|| [];_Hasync.push(['Histats.start', '1,2448783,4,2021,112,35,00011110']);_Hasync.push(['Histats.fasi', '1']);_Hasync.push(['Histats.track_hits', '']);(function() {var hs = document.createElement('script'); hs.type = 'text/javascript'; hs.async = true;hs.src = ('http://s10.histats.com/js15_as.js');(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(hs);})();</script><noscript><a href="http://www.histats.com" target="_blank"><img src="http://sstatic1.histats.com/0.gif?2448783&101" alt="counter" border="0"></a></noscript><!-- Histats.com END --> <footer id="footer" class="container"> <div class="row">{$HOOK_FOOTER}</div> </footer> </div><!-- #footer --> </div><!-- #page -->{/if}{include file="$tpl_dir./global.tpl"} </body></html> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now