
Originally Posted by
dasonix
I have had a read through this thread and been looking for a way to turn off bots or to by default shrink there session info (page views) does such a hack exist? As we have either google or yahoo on our site constantly it would be nice to stop there data from hogging the screen when looking at this mods output (looking at over 1200 page views in detail is a right pain in the bum). In the ideal world something like the visitors mod for OSC would be nice where I can turn bots sessions views on or off
Petter Normann developed a version of User Tracking which contained some features missing in JeffD's version. (Petter's last version Sept 10-06). And JeffD's later version contains some features not in Petter's version. (Jeff's last version Dec 04-06). Both Petter and Jeff are now out of the Zen Cart dev scene.
So it would be very fine if someone with the dev skills could takeover the development of this mod and reconcile features from both versions into one.
Regarding tracking bots or not, here's some info in Petter's last version readme (info which is not included in JeffD's readme):
PHP Code:
File Modifications: 2 with Catalog-user-tracking AND Admin-user-tracking
add the following to the end of /includes/templates/YOUR_TEMPLATE/common/tpl_footer.php
Alternative 1: tracking all users and bots.
<?php if (ZEN_CONFIG_USER_TRACKING == 'true' && function_exists('zen_update_user_tracking')) { zen_update_user_tracking(); } ?>
Alternative 2: track only users with set sessions.
<?php if (ZEN_CONFIG_USER_TRACKING == 'true' && $session_started && function_exists('zen_update_user_tracking')) { zen_update_user_tracking(); } ?>
Alternative 3: RECOMMENDED, track all users except bots/spiders, requires Configuration->Sessions->Prevent Spider Sessions->true (I don't know if this works with Zen-Cart versions older than 1.2.6d).
<?php if (ZEN_CONFIG_USER_TRACKING == 'true' && !$spider_flag && function_exists('zen_update_user_tracking')) { zen_update_user_tracking(); } ?>
Add if you want to track admin pages viewed add the following to the end of /admin/includes/footer.php
<?php if (ADMIN_CONFIG_USER_TRACKING == 'true' && function_exists('zen_update_user_tracking')) { zen_update_user_tracking(); } ?>
The above code works for me on ZC 1.37 with JeffD's last UT mod version (12-04-06). YMMV.
Hope this helps.
Woody
Bookmarks