Joomla! Backend HitCounter
Although Joomla is capable of recording detailed statistical information about your visitors there is no "overall" visitor count display available anywhere.
This small hack will add a visitor count display to the Site>Statistics menu of your Joomla backend. It does not record anything itself, instead it utilizes the built-in Joomla statistics, so it will only work (and be displayed) if they are enabled (Administrator backend > Global Configuration > tab "Statistics" > set "Statistics:" to "Yes").
| Screenshot of Backend HitCounter |
To add the hitcounter to your admin backend you need to do the following:
- In file: administrator/modules/mod_fullmenu.php search for the following line (in Joomla 1.0.7 & 1.0.8 it is line 96):
if ($mosConfig_enable_stats == 1) {
- Now add this code right below that line:
// Start of Backend HitCounter
$query = "SELECT SUM( hits ) AS count FROM #__stats_agents WHERE type = 1";
$database->setQuery( $query );
$hits = $database->loadResult();
?>
['<img src="../includes/js/ThemeOffice/globe2.png" />', 'Visitors: <?php echo ( $hits == NULL ? '0' : $hits ); ?>', null],
<?php
// End of Backend HitCounter
- Save and upload that file, overwriting the original one (make a backup first!). That's it.
You can also download a readily modified version of "mod_fullmenu.php" for Joomla 1.0.7 & 1.0.8 (the file "mod_fullmenu.php" is the same for those releases). Unzip the downloaded archive to your local harddrive retaining the directory structure, then upload to your website, overwriting the original file in the process (make a backup first!):
Download "Backend Hitcounter" for Joomla 1.0.7 & 1.0.8:









