Use this sql-path to install user tracking
DROP TABLE IF EXISTS user_tracking;
CREATE TABLE user_tracking (
customer_id int(11) default NULL,
click_id int(11) default NULL,
full_name varchar(64) NOT NULL default '',
session_id varchar(128) NOT NULL default '',
ip_address varchar(15) NOT NULL default '',
time_entry varchar(14) NOT NULL default '',
time_last_click varchar(14) NOT NULL default '',
last_page_url varchar(254) NOT NULL default '',
referer_url varchar(254) NOT NULL default '',
page_desc varchar(64) NOT NULL default '',
KEY session_id (session_id),
KEY time_entry (time_entry)
) TYPE=MyISAM;
SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'User Tracking Configuration';
DELETE FROM configuration WHERE configuration_group_id = @t4;
DELETE FROM configuration_group WHERE configuration_group_id = @t4;
INSERT INTO configuration_group VALUES (NULL, 'User Tracking Configuration', 'Set User Tracking Options', '1', '1');
UPDATE configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();
SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'User Tracking';
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'User Tracking Visitors', 'ZEN_CONFIG_USER_TRACKING', 'true', 'Check the Customers/Guests behaviour? (each click will be recorded)', @t4, 1, now(), now(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),'),
(NULL, 'User Tracking (ADMIN)', 'ADMIN_CONFIG_USER_TRACKING', 'true', 'Check the ADMINs behaviour? (each click will be recorded)', @t4, 2, now(), now(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),'),
(NULL, 'User Tracking (exclude IP-Addresses)', 'CONFIG_USER_TRACKING_EXCLUDED', 'your IPs', 'Do NOT record these IP Addresses<br />(like webmaster/owners/company IPs)<br /><br />Examples:<br />192.168.1.1<br />192.168.1.0/255.255.255.0<br />192.168.1.0/24<br /><br />Or any combination of these separated with a comma:<br />192.168.1.1<b>,</b>192.168.2.0/255.255.255.0<b>,</b>192.168.3.0/24<b>,</b>192.168.1.2<br /><br />', @t4, 10, now(), now(), NULL, NULL),
(NULL, 'User Tracking (Session Limit)', 'CONFIG_USER_TRACKING_SESSION_LIMIT', '50', 'Displaying the latest # sessions of this 24 hour period.<br />(SET to 999999 for unlimited per 24 hour period)<br />NOTE:<br />Watch your space !', @t4, 15, now(), now(), NULL, NULL),
(NULL, 'User Tracking (your favorite WHOIS URL)', 'USER_TRACKING_WHOIS_URL', 'http://www.dnsstuff.com/tools/whois.ch?ip=', 'Enter your favorite WHOIS tracking site<br />(the IP will follow automatically after this url)', @t4, 50, now(), now(), NULL, NULL),
(NULL, 'User Tracking (HostLookup)', 'CONFIG_USER_TRACKING_HOST_LOOKUP', 'true', 'Check the hostname of each IP address? (may cause slower display of UT data)', @t4, 20, now(), now(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),');