Jump to content

Need help to add Histats counter to prestashop


Recommended Posts

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

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

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...