Quote Originally Posted by Woodymon View Post
PHP Code:
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(); } ?>
One nuance:
If you set Force Cookie Use->true, then at the first user entry sessions does not started!!! And In variant 2 and 3 user-tracking not started. In this case you lost one click and (NB!!!) refferal. But if this user are old (returning) user and have an old (previous) zen cookie the session started and your tracking system collect this info. So, the result beforehand is not known.