How to install a hit counter into the product?
Posted: 20 Sep 2012, 11:51
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:
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:
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">© <?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">© <?php echo param('siteName_'.Yii::app()->language).', '.date('Y'); ?></p>
<div align="center">
<!-- counter code here -->
</div>
</div>