Skipper Posted January 23, 2009 Share Posted January 23, 2009 Each time you (the shop owner !) look at a product, a category, whatever ... your page counters get increased, and you polute your own statistics. For the view counts, these steps get yourself out of your way:First, add your backoffice's maintenance IP address into the backoffice preferences.Then add the following lines right after the { of public static function setPageViewed($id_page) in file /classes/Page.php /* Skipper : don't update stats for the backoffice computer */ if($_SERVER['REMOTE_ADDR'] == Configuration::get('PS_MAINTENANCE_IP')) return; Link to comment Share on other sites More sharing options...
Damien Metzger Posted January 23, 2009 Share Posted January 23, 2009 Lol why not, it's an idea.But your line would be best placed in /modules/statsdata/statsdata.php, at the beginning of the function hookFooter($params) Link to comment Share on other sites More sharing options...
Star Posted January 23, 2009 Share Posted January 23, 2009 Each time you (the shop owner !) look at a product, a category, whatever ... your page counters get increased, and you polute your own statistics. For the view counts, these steps get yourself out of your way:First, add your backoffice's maintenance IP address into the backoffice preferences.Then add the following lines right after the { of public static function setPageViewed($id_page) in file /classes/Page.php/* Skipper : don't update stats for the backoffice computer */ if($_SERVER['REMOTE_ADDR'] == Configuration::get('PS_MAINTENANCE_IP')) return; Good idea. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts