Page 1 of 1

How to install a hit counter into the product?

PostPosted: 20 Sep 2012, 11:51
by support
Many users ask how to install hit counters of Google Analytics and similar ones into the product.
For that purpose you should edit the file themes/classic/views/layouts/main.php and find here the lines:
Code: Select all
<div class="footer">
    <p class="slogan">&copy;&nbsp;<?php echo param('siteName_'.Yii::app()->language).', '.date('Y'); ?></p>
</div>

Here you should input a hit counter code.
If you would like to display it in the center of the page, the code will be displayed as the following one:
Code: Select all
<div class="footer">
    <p class="slogan">&copy;&nbsp;<?php echo param('siteName_'.Yii::app()->language).', '.date('Y'); ?></p>

    <div align="center">
        <!-- counter code here -->
    </div>
</div>

Re: How to install a hit counter into the product?

PostPosted: 11 Nov 2013, 08:54
by MarcieloAnderson
Excellent, I used both the page hit co0unter and the Visitors Online counter. Google analitics is ok, but this helps me keep track when I first enter the site....

Thanks,