themadman Posted September 9, 2003 Share Posted September 9, 2003 OSC2.2MS2CVS sep 8, 2003 User Tracking with Admin 1.35 I worked through the install docs step by step and believe I did everything right, only questionable item would be this: (install.txt) add to catalog/includes/application_top.php Look for: tep_session_start(); add after: // user_tracking modifications if (!$referer_url) { $referer_url = $HTTP_SERVER_VARS['HTTP_REFERER']; if ($referer_url) { tep_session_register('referer_url'); } } What the initial code looked like tep_session_start(); $session_started = true; } What mine looked like afterwards: tep_session_start(); if (!$referer_url) { $referer_url = $HTTP_SERVER_VARS['HTTP_REFERER']; if ($referer_url) { tep_session_register('referer_url'); } } $session_started = true; } If I got that part right, then all installation instructions were done correctly... please help. Quote Link to comment Share on other sites More sharing options...
themadman Posted September 9, 2003 Author Share Posted September 9, 2003 As I said, the config page is blank but the user tracking page shows this: This tool allows for you to see the click patterns of the users through your site, organized by sessions. This data can be very valuable to those looking for how to improve your site by watching how customers actually use it. You can surf back and forth through the days by using the link below.SELECT VIEW: Back to Sep 08, 2003 Now displaying the latest CONFIG_USER_TRACKING_SESSION_LIMIT sessions of this 24 hour period. You can also purge all records past the last 72 hours of data. Delete all info from IP-Address CONFIG_USER_TRACKING_EXCLUDED purge all records There have been 13 page views in this 24 hour period. Total number of customers: It leaves off there... doesnt show any session data at all, no headers, no session ids, no no ips, no nothing. Quote Link to comment Share on other sites More sharing options...
themadman Posted September 9, 2003 Author Share Posted September 9, 2003 maybe it has something to do with it,... im not storing osc sessions in the db... my understanding was that osc would write sessions to the tmp dir which is defined and chmod is 777. Ive noticed that no files have been written there. someone that knows user tracking better would best be able to guess at this. please advise. i have to go to work.... else i'd try to change it to the db real quick.. Quote Link to comment Share on other sites More sharing options...
themadman Posted September 9, 2003 Author Share Posted September 9, 2003 changed configure.php to mysql and now the page has the table headers... but blank info on user tracking config. joy gotta go be back at midnite =( Quote Link to comment Share on other sites More sharing options...
themadman Posted September 10, 2003 Author Share Posted September 10, 2003 Man... now im bummed. Quote Link to comment Share on other sites More sharing options...
Ajeh Posted September 10, 2003 Share Posted September 10, 2003 Change your footer setting in the admin to: // require(DIR_WS_FUNCTIONS . 'user_tracking.php'); require(DIR_FS_CATALOG . DIR_WS_FUNCTIONS . 'user_tracking.php'); if ( ADMIN_CONFIG_USER_TRACKING == 'true') { tep_update_user_tracking(); } Quote Link to comment Share on other sites More sharing options...
Ajeh Posted September 10, 2003 Share Posted September 10, 2003 And store your sessions in mysql or it won't work either Quote Link to comment Share on other sites More sharing options...
themadman Posted September 12, 2003 Author Share Posted September 12, 2003 It appears to have had no effect, user track config still blank data and user tracking still shows no sessions. =( Quote Link to comment Share on other sites More sharing options...
chfields Posted September 12, 2003 Share Posted September 12, 2003 Now displaying the latest CONFIG_USER_TRACKING_SESSION_LIMIT sessions of this 24 hour period. You can also purge all records past the last 72 hours of data. Delete all info from IP-Address CONFIG_USER_TRACKING_EXCLUDED purge all records This looks like your missing some defines....... This may not have anything to do with the current problem....... Quote Link to comment Share on other sites More sharing options...
Starkness Posted December 1, 2003 Share Posted December 1, 2003 I have installed the User Tracking w/ Admin mod and I am having a similiar error... I think I got everything right, but I don't think I got this part right... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (install.txt) add to catalog/includes/application_top.php Look for: tep_session_start(); add after: // user_tracking modifications if (!$referer_url) { $referer_url = $HTTP_SERVER_VARS['HTTP_REFERER']; if ($referer_url) { tep_session_register('referer_url'); } } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I don't get it... It says to look for: tep_session_start(); and there are 3 instances of Look for: tep_session_start(); on the application_top.php file. I chose the first one on line 171 and am getting this error: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1064 - You have an error in your SQL syntax near 'n' Flyer')' at line 1 insert into user_tracking (customer_id, full_name, session_id, ip_address, time_entry, time_last_click, last_page_url, page_desc) values ('', 'Guest', '93314db55206ec178596fc73be2d0a63', '68.168.130.106', '1070313907', '1070313907', '/catalog/product_info.php?products_id=33', 'Flip 'n' Flyer') [TEP STOP] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Here is how I placed it into app..._top.php can someone tell me where exactly to place this code? Thank you! Quote Thanks! Starkness Link to comment Share on other sites More sharing options...
Starkness Posted December 1, 2003 Share Posted December 1, 2003 Here is how I placed the code **Begin CODE** if (isset($HTTP_COOKIE_VARS['cookie_test'])) { //this is on line 170// tep_session_start(); // user_tracking modifications if (!$referer_url) { $referer_url = $HTTP_SERVER_VARS['HTTP_REFERER']; if ($referer_url) { tep_session_register('referer_url'); } } $session_started = true; } } elseif (SESSION_BLOCK_SPIDERS == 'True') { $user_agent = strtolower(getenv('HTTP_USER_AGENT')); $spider_flag = false; **End CODE** Quote Thanks! Starkness Link to comment Share on other sites More sharing options...
Starkness Posted December 1, 2003 Share Posted December 1, 2003 I have placed the code at the end of this segment. I am still getting the same error, but only on the one page that I clicked on and got the error earlier. Could this have damaged the database data? Does anyone have any idea if this looks correct? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if (isset($HTTP_COOKIE_VARS['cookie_test'])) { tep_session_start(); $session_started = true; } } elseif (SESSION_BLOCK_SPIDERS == 'True') { $user_agent = strtolower(getenv('HTTP_USER_AGENT')); $spider_flag = false; if (tep_not_null($user_agent)) { $spiders = file(DIR_WS_INCLUDES . 'spiders.txt'); for ($i=0, $n=sizeof($spiders); $i<$n; $i++) { if (tep_not_null($spiders[$i])) { if (is_integer(strpos($user_agent, trim($spiders[$i])))) { $spider_flag = true; break; } } } } if ($spider_flag == false) { tep_session_start(); $session_started = true; } } else { tep_session_start(); $session_started = true; } // user_tracking modifications if (!$referer_url) { $referer_url = $HTTP_SERVER_VARS['HTTP_REFERER']; if ($referer_url) { tep_session_register('referer_url'); } } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Quote Thanks! Starkness Link to comment Share on other sites More sharing options...
Starkness Posted December 2, 2003 Share Posted December 2, 2003 I have started totally from scratch, new database, and I carefully installed the user tracking with admin mod. I keep getting this error: Can someone please tell me if there is a problem using the Simple Template System 1.8 with the User Tracking with Admin mod? 1064 - You have an error in your SQL syntax near 'n' Flyer')' at line 1 insert into user_tracking (customer_id, full_name, session_id, ip_address, time_entry, time_last_click, last_page_url, page_desc) values ('', 'Guest', 'd8899885005c8a28a85aca34143891ed', '68.168.130.106', '1070380113', '1070380113', '/catalog/product_info.php?products_id=33&osCsid=d8899885005c8a28a85aca34143891ed', 'Flip 'n' Flyer') [TEP STOP] Quote Thanks! Starkness Link to comment Share on other sites More sharing options...
Starkness Posted December 2, 2003 Share Posted December 2, 2003 Well. I figured it out. --And.... I had to return to share. Do NOT use double single quotes in a product description like so: 'n' I have changed the name to reflect a dash instead of a single quote on either side of the character, and it works fine.. egads!!!! Mystery solved.... LOL :lol: Quote Thanks! Starkness Link to comment Share on other sites More sharing options...
rpertiet Posted December 2, 2003 Share Posted December 2, 2003 I've installed this mod with no problems. The issue that I am having is that some session ID's are not being captured. This then puts multiple IP address information under the blank session ID. Any ideas? Thanks! Quote Link to comment Share on other sites More sharing options...
airolg Posted December 2, 2003 Share Posted December 2, 2003 I wish I could help, but, alas, I thought I'd ask for help too. I get everything to work and it picks up two visits then quits never picks up anymore visitors. However, if I tell it to pick up admin visits, it adds them, but no more than the first two of the day. Any suggestions? Help!!!! Quote Link to comment Share on other sites More sharing options...
rpertiet Posted December 3, 2003 Share Posted December 3, 2003 I've installed this mod with no problems. The issue that I am having is that some session ID's are not being captured. This then puts multiple IP address information under the blank session ID. Any ideas? Thanks! Further research shows that it is when the user comes to my site linked from somewhere else (google for example). Once they start to click it creates the session id. Quote Link to comment Share on other sites More sharing options...
rpertiet Posted December 4, 2003 Share Posted December 4, 2003 I've installed this mod with no problems. The issue that I am having is that some session ID's are not being captured. This then puts multiple IP address information under the blank session ID. Any ideas? Thanks! Further research shows that it is when the user comes to my site linked from somewhere else (google for example). Once they start to click it creates the session id. I had "Force Cookie Use" set to true. Once I turned this off, this worked fine. Quote Link to comment Share on other sites More sharing options...
nmad Posted December 8, 2003 Share Posted December 8, 2003 hello , i Installed this contribution, all logs show OK in admin, but i receive this errors in the bottom of the admin: Warning: error_log: Unable to write to /var/log/www/tep/page_parse_time.log in c:\appserv\www\fleur\catalogo\admin\includes\classes\logger.php on line 49 Parse Time: 0.153s -------------------- and in the catalog i had these errors in the bottom too: Warning: error_log: Unable to write to /var/log/www/tep/page_parse_time.log in c:\appserv\www\fleur\catalogo\includes\application_bottom.php on line 20 Parse Time: 0.287s thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.