Jump to content

Messing up your own statistics ? Forget it !


Recommended Posts

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

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

×
×
  • Create New...