Zen Cart Logo
Forums / All Other Contributions/Addons / User tracking mod

User tracking mod

Views: 183,764

Results 681 to 700 of 861
24 Feb 2015, 8:51 PM
#681
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

User tracking mod

Phil S:

I updated to 1.5.4 and reinstalled this and now I'm not being told where my visitors are coming from. Every Originating URL is showing as having come from one of my store pages with the only exception being traffic from Google.

I had posted a link to a special in one of the forums I subscribe to and when I went in and edited the link by adding src=wxyz.com, that showed up in the originating URL.

Has something changed since I used this in 1.3?

A lot about the internet, php, and servers has changed; however, the underlying code to identify the applicable information in this mod have not been updated yet. The underlying code to provide the results for this plugin was built on early whos_online code. That code has changed and needs to be incorporated into the plugin. Something on "my list" but hasn't made it to the forefront. The display/interface has been updated but the code obtaining the results has not... Yet...

24 Feb 2015, 11:20 PM
#682
phil_s avatar

phil_s

New Zenner

Join Date:
Mar 2008
Posts:
49
Plugin Contributions:
0

Re: User tracking mod

I'm going to guess that I was using a VERY old version that I did not update when I moved to version 1.3.9 5 years ago This addon was one of the first things I re-installed when I upgraded to 1.5. It was preceded only by the UPS and USPS addons.

The ability to be able to see which forum is delivering traffic to my store is more important to me than seeing where they go once there. I can get around that by adding the src=wxyz.com when I post a link but I really appreciated the ability to see traffic generated when someone else does too. It was also a nice heads-up when I'd find traffic coming from discussions in sites I had never visited. That was usually followed up by an explanation if someone posted a problem or a sale if someone praised a product or service.

Hopefully this will be bumped up the priority list. I'm not adverse to offering a shameless bribe donation for it's rapid implementation. (grin)

25 Feb 2015, 4:47 PM
#683
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: User tracking mod

I will say this, priorities do get set as a result of needing to meet a commitment.

I will say that I have the plugin installed on a ZC 1.5.3 system and it has for the most part provided the source of the visitor, but at the same time have seen cases where it appears that the visitor started at the site (could it be that the link is copied and pasted into the browser instead of clicked on? Maybe) but it could also be the various settings of the two hosts (site with the link and the site visited). Regardless I know the collection code is more than likely outdated. Like most plugins, I had a need to use this and saw some ways that the data presentation could be improved and at the time I had little knowledge of the ZC workings, but was willing to set out to try to make it better/keep it alive. :) I do want it to get updated... ;)

26 Feb 2015, 1:36 PM
#684
phil_s avatar

phil_s

New Zenner

Join Date:
Mar 2008
Posts:
49
Plugin Contributions:
0

Re: User tracking mod

"Shameless bribe" above was supposed to have a strike-through as opposed to being underlined. That completely changes the tone of my message. Whoops!

I have to wonder if it's something different between 1.5.3 and 1.5.4 as I'm only seeing a referrer when traffic comes from Google or another search site.

10 Mar 2015, 4:19 AM
#685
tom97zr2 avatar

tom97zr2

New Zenner

Join Date:
Jan 2014
Location:
United States
Posts:
28
Plugin Contributions:
0

Re: User tracking mod

Is there any good reason to update to the most recent User Tracking update v1.5.2? I have been using the 2nd most recent update v1.5 not the newest update v1.5.2 . It looks like there are quite a few changes to some files. Thank you.

12 Mar 2015, 9:44 PM
#686
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: User tracking mod

Is there any good reason to update to the most recent User Tracking update v1.5.2?

Good question.

I have just spent some time working on the 1.5.08 version over the last couple of weeks and didn't notice a newer one had been posted since I started...new uploads should be accompanied by a post in the relevant thread for exactly this reason!

The plugin page only mentions a change to the sql install but in fact there are lot of significant changes to the previous version such as changing $db->prepare_input to addslashes (why?), the removal of some (probably pointless) admin config options and quite a few other changes. None of this has been documented at all.
Perhaps the uploader of the changes corseter could chip in with some information here to explain the improvements...

And another question...what is the point of the user_tracking_config.php file in the admin? Seems redundant, nothing uses it.

13 Mar 2015, 4:36 AM
#687
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: User tracking mod

tom97zr2:

Is there any good reason to update to the most recent User Tracking update v1.5.2? I have been using the 2nd most recent update v1.5 not the newest update v1.5.2 . It looks like there are quite a few changes to some files. Thank you.

So, it wasn't really an "upgrade" but a return to an earlier version with a "new" new_user_tracking.sql file... More than likely from yet an even older version... (Sorry, not going to chase down the exact age of the content seeing that the only three discrepancies between version 1.5.2 and version 1.4.2 is that

  1. a zip file of flags exists. (BTW, the site suggested to access and obtain "better images" was found to have a virus when accessing which is why those images never got incorporated... I have not tried to unzip the zipped images or specifically scan the file.)
  2. A sql file was included to identify that it is necessary to work with ZC 1.5.4 as the other (versions including the one posted in this forum) would not work with ZC 1.5.4.
  3. The New_Install_Readme.txt file was updated in one sentence to indicate that ZC 1.5.4 requires the above "newly" generated sql file "required" by ZC 1.5.4.

Based on that, I personally would say no... It is essentially version 1.4.2 with a replaced/updated/new new_user_install.sql, which is not even close to the same as posted above, returns to hard coding the configuration_id to 999 (even though this could potentially conflict with some other program's choice to install with that value or after sufficient install/uninstall cycles that the configuration_id collides with that of User Tracking.) I didn't know either that there was a "new" version uploaded. There was no notification of a new update, besides the new user install needing incorporation from the forum as published above, I don't know of any specific fixes that were needed for ZC 1.5.4 compatibility. (Ie, worked just fine on a 1.5.4 website as written in version 1.5.08... Perhaps without some of the information that has been requested/asked about.)

torvista:

Good question.

I have just spent some time working on the 1.5.08 version over the last couple of weeks and didn't notice a newer one had been posted since I started...new uploads should be accompanied by a post in the relevant thread for exactly this reason!

The plugin page only mentions a change to the sql install but in fact there are lot of significant changes to the previous version such as changing $db->prepare_input to addslashes (why?), the removal of some (probably pointless) admin config options and quite a few other changes. None of this has been documented at all.
Perhaps the uploader of the changes corseter could chip in with some information here to explain the improvements...

And another question...what is the point of the user_tracking_config.php file in the admin? Seems redundant, nothing uses it.

From the above review, it was apparent that one of the old versions was used/maintained with non-zencart functionality used to "upgrade" to ZC 1.5.4. As to the user_tracking_config.php file, it was initially maintained in the package although its functionality was no longer supported by PHP. At one point someone had wanted to co-locate the user tracking tool and the user tracking configuration options and to accomplish that a version of the configuration.php file was made, but never updated as the ZC configuration.php file was upgraded... It is/was to be removed from the package on the next update including a significantly improved installation/upgrade process than recent; however, I hadn't provided any type of an update since end of 2013, as said, being overrun by other things.

13 Mar 2015, 8:28 AM
#688
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: User tracking mod

...thanks for checking into that. I guessed it was as such but found it hard to believe that was the case. Very misleading.

I'll continue tinkering with mine and upload shortly...anything else this mod needs that you haven't got round to doing?

13 Mar 2015, 9:48 AM
#689
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: User tracking mod

Short. List no particular order:
-Rework the collection of information so that it truly is able to differentiate between the spiders and the non-spiders (ie. Use more of the who's online structure and in particular so that as it gets updated, this can closely mirror it.)
-Add the move today/back/forward/today links to the bottom of the listing.
Incorporate buttons to select adjacent to ip addresses so as to: block ip/unblock ip so that the ip address gets added to the existing list of ip addresses rather than being just one more data point. Works/worked with the first rendition of block ip, but underlying structure of that program got modified.
-Figure out/correct why the admin tracking of information does not always display all information for that admin.
-Add an auto-delete function that will only delete items that are older than the delete periodicity without requiring the "user" to have cron jobs as an option with their host. Ie. Some form of date/time check that is not too resource intensive, if within the next check time period, then auto delete the day's information that is x-days older than the current delete cycle. The number of days possibly be some hard coded number factor or selectable by the store owner, but regardless not so that everything is deleted now always automatically.

Those are just a few of the things that I have/had on my plate for this besides correcting the new user install sql fiasco.I created nearly a year and a quarter ago and making the auto-installation script instead of manual sql commands.

13 Mar 2015, 10:30 AM
#690
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: User tracking mod

Ohh and to add notification of a new version being available similar to the USPS mod.

13 Mar 2015, 10:42 AM
#691
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: User tracking mod

Regarding ip blocker, if on the allowed list, selection takes to no list so that next selection. Takes to blocked.

Another is that active shopper with cart items is only record that shows with items in cart.

13 Mar 2015, 11:34 AM
#692
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: User tracking mod

Looking at the big picture, would this not be a better fit as a mod to who's online?

I have only "fixed" minor errors or things i found broken but one issue is the install sql, which tries to use an array of an array which does not work, I would like to fix that at least but it's a bit involved to understand :

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('User Tracking (Purge Units)', 'CONFIG_USER_TRACKING_PURGE_UNITS', '1440', 'Pick the units associate with the periodicity to allow purging data.<br/>', @UserTrackgID, 31, NOW(), NULL, '
zen_cfg_select_option(array
(array(''id''=>''60'', ''text''=>''Hours''),
array(''id''=>''1440'', ''text''=>''Days''),
array(''id''=>''10080'', ''text''=>''Weeks''),
array(''id''=>''43200'', ''text''=>''Months (Based on 30 days)'
')),');

13 Mar 2015, 11:44 AM
#693
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: User tracking mod

torvista:

Looking at the big picture, would this not be a better fit as a mod to who's online?

I have only "fixed" minor errors or things i found broken but one issue is the install sql, which tries to use an array of an array which does not work, I would like to fix that at least but it's a bit involved to understand :

If I remember how I. Have gotten through this correctly is to escape the quotes... Ie. The concept is correct, but implementation within the construct is incorrect.

14 Mar 2015, 8:07 PM
#694
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: User tracking mod

torvista:

Looking at the big picture, would this not be a better fit as a mod to who's online?

I have only "fixed" minor errors or things i found broken but one issue is the install sql, which tries to use an array of an array which does not work, I would like to fix that at least but it's a bit involved to understand :

mc12345678:

If I remember how I. Have gotten through this correctly is to escape the quotes... Ie. The concept is correct, but implementation within the construct is incorrect.

Sorry that I did not also give the comment/question more of an explanation.

The array of arrays is to provide a dropdown that is 1) understandable to users, but with stored data that does not require manipulation when used in the calculations... The look of the install is "more complicated", but when the sql is properly formatted and applied, the configuration panel use is simplified and clearer. This reduces the need to use statements such as:

Choose 60 for hours, 1440 for days, etc... Instead one chooses hours, or days and the value 60 or 1440, respectively is stored in the database and used in calculations...

The SQL that has worked for me, recognizing the "issue" with the incorrect use of double quotes which was also identified through review of the ZC default installation sql for similar type of options to be provided is:

# If this script has been run before, this line is likely to cause an error. Check logs folder (ZC V >=1.5.1) or cache folder (ZC V <= 1.5.0)  If this is the SQL command that caused an error, it may be removed or commented.
INSERT INTO admin_pages (page_key, language_key, main_page, menu_key, display_on_menu, sort_order) VALUES ('UserTracking', 'BOX_TOOLS_USER_TRACKING', 'FILENAME_USER_TRACKING', 'tools', 'Y', 10000);

# If this script has been run before, this line is likely to cause an error. Check logs folder (ZC V >=1.5.1) or cache folder (ZC V <= 1.5.0)  If this is the SQL command that caused an error, it may be removed or commented.
INSERT INTO configuration_group (`configuration_group_title`, `configuration_group_description`, `visible`) VALUES ('User Tracking Config', 'User Tracking', 1);

# Do not remove these SQL lines.  They are needed for further processing.
SELECT @UserTrackgID := configuration_group_id
FROM configuration_group where configuration_group_title = 'User Tracking Config';
UPDATE configuration_group SET sort_order = @UserTrackgID WHERE configuration_group_id = @UserTrackgID AND configuration_group_id != 0;

# If this script has been run before, this line is likely to cause an error. Check logs folder (ZC V >=1.5.1) or cache folder (ZC V <= 1.5.0)  If this is the SQL command that caused an error, it may be removed or commented.
INSERT INTO admin_pages (page_key, language_key, main_page, page_params, menu_key, display_on_menu, sort_order) VALUES ('UserTrackingConfig', 'BOX_TOOLS_USER_TRACKING_CONFIG', 'FILENAME_CONFIGURATION', CONCAT('gID=', @UserTrackgID), 'configuration', 'Y', @UserTrackgID);

# DROP TABLE IF EXISTS user_tracking;  
/* The above line is not necessary on a new install as there is no expectation of another plugin
 naming the table the same.  If however, the below line is a problem, then either the above DROP TABLE should be uncommented
 or the below CREATE TABLE should be commented using double forward slashes.  This will depend on whether the table exists by running this previously or if another application has created this table. */
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(32) 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(128) NOT NULL default '',
  `referer_url` varchar(254) NOT NULL default '',
  `page_desc` varchar(64) NOT NULL default '',
  `customers_host_address` varchar(64) NOT NULL default ''
) ENGINE=MyISAM;

# DELETE FROM configuration where configuration_group_id = @UserTrackgID and @UserTrackgID != 0;  
/* The above line is not necessary for a new installation as this information is not already entered in the database; however, if while attempting to run this query, there may be an error at the insert below and therefore this may need to be uncommented to move forward with it.  Be advised, this will remove all options that are currently on the User Trackings configuration menu. */

# If this script has been run before, one or more of the below lines are likely to cause an error. Check logs folder (ZC V >=1.5.1) or cache folder (ZC V <= 1.5.0). The line(s) below up to the SQL command that caused the error may be removed or commented out.

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('User Tracking Visitors', 'ZEN_CONFIG_USER_TRACKING', 'true', 'Check the Customers/Guests behaviour? (each click will be recorded)', @UserTrackgID, 1, NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),');
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('User Tracking (ADMIN)', 'ADMIN_CONFIG_USER_TRACKING', 'true', 'Check the ADMINs behaviour? (each click will be recorded)', @UserTrackgID, 2, NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),');
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('User Tracking (exclude this IP-Address)', 'CONFIG_USER_TRACKING_EXCLUDED', 'your IP', 'Do NOT record this IP Address<br>(like webmaster/owners/Beta-testers)', @UserTrackgID, 10, NOW(), NULL, NULL);
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('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 you space !', @UserTrackgID, 15, NOW(), NULL, NULL);
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('User Tracking (Admin User Can Delete)', 'CONFIG_USER_TRACKING_ADMIN_CAN_DELETE', 'true', 'Allow Record Deletion to be Active?<br/>Setting this to true will override ENTRY and SESSION purges.<br/>Default <b>true</b><br/>', @UserTrackgID, 25, NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),');
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('User Tracking (Admin User Can Delete Historical Data)', 'CONFIG_USER_TRACKING_ADMIN_CAN_DELETE_RECORDS', 'false', 'Allow Record Deletion of records older than now - the purge duration set below.<br/>This value is ignored if Admin User Can Delete is set to true.  Otherwise set this to true to allow deletion of visits.<br/>Default <b>false</b>.<br/>', @UserTrackgID, 26, NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),');
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('User Tracking (Admin User Can Delete SESSIONS)', 'CONFIG_USER_TRACKING_ADMIN_CAN_DELETE_SESSIONS', 'false', 'Allow SESSION Deletion to be Active?<br/>This setting is ignored if Admin User Can Delete is set to true.<br/>Default <b>false</b><br/>', @UserTrackgID, 27, NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),');
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('User Tracking (Admin User Can Delete IP)', 'CONFIG_USER_TRACKING_ADMIN_CAN_DELETE_IP', 'false', 'Allow Deletion of records that match the identified IP address?<br/>This setting is ignored if Admin User Can Delete is set to true.<br/>Default <b>false</b><br/>', @UserTrackgID, 28, NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),');
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('User Tracking (Purge this Number)', 'CONFIG_USER_TRACKING_PURGE_NUMBER', '3', 'What is the number associated with purging before the current date/time?<br/><br/>An example would be to choose 3 here and units of days to delete data greater than 3 days before today.<br/>', @UserTrackgID, 30, NOW(), NULL, NULL);
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('User Tracking (Purge Units)', 'CONFIG_USER_TRACKING_PURGE_UNITS', '1440', 'Pick the units associate with the periodicity to allow purging data.<br/>', @UserTrackgID, 31, NOW(), NULL, 'zen_cfg_select_option(array(array(\'id\'=>\'60\', \'text\'=>\'Hours\'), array(\'id\'=>\'1440\', \'text\'=>\'Days\'),array(\'id\'=>\'10080\', \'text\'=>\'Weeks\'),array(\'id\'=>\'43200\', \'text\'=>\'Months (Based on 30 days)\')),');
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('User Tracking (Type of User Interaction to Record)', 'CONFIG_USER_TRACKING_TRACK_TYPE_RECORD', '1', 'Type of user tracking to record?<br/><br/>1 - All visitors.<br/>2 - Visitors views where sessions have been started.<br/>3 - All users except bots/spiders ( requires Configuration->Sessions->Prevent Spider Sessions->true)  (Don\'t know if this works with Zen-Cart versions older than 1.2.6d)<br/><br/>Related to above: If you set Force Cookie Use->true, then at the first user entry, sessions do not start!!! And in variants 2 and 3, user-tracking will not have started. In this case you lose one click and do not log the referal. But if this user is a returning user and has an old/previous zen cookie the session started and your tracking system will collect this info. So, the result beforehand is not logged or will not be known.<br/>', @UserTrackgID, 40, NOW(), NULL, 'zen_cfg_select_option(array(\'1\', \'2\',\'3\'),');
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('User Tracking (your favorite WHOIS URL)', 'USER_TRACKING_WHOIS_URL', 'http://www.dnsstuff.com/tools/whois.ch?ip=', 'Put here you favorite WHOIS tracking site<br>(the IP will follow automaticly after this url)', @UserTrackgID, 50, NOW(), NULL, NULL);
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('User Tracking (Show Product Category when tracking product clicks)', 'ZEN_CONFIG_SHOW_USER_TRACKING_CATEGORY', 'true', 'Show Product Category when tracking product clicks', @UserTrackgID, 60, NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),');
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES ('User Tracking (Version Installed)', 'CONFIG_USER_TRACKING_VERSION', '1.5', 'Shows the version number associated with user tracking and should be updated with each upgrade', @UserTrackgID, 1000, NOW(), NULL, 'zen_cfg_select_option(array(\'CONFIG_USER_TRACKING_VERSION\'),');

The above worked on a ZC 1.5.4 installation and is finally correct... Torvista may have other improvements in mind.

14 Mar 2015, 8:46 PM
#695
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: User tracking mod

mc12345678:

Sorry that I did not also give the comment/question more of an explanation.

The array of arrays is to provide a dropdown that is 1) understandable to users, but with stored data that does not require manipulation when used in the calculations... The look of the install is "more complicated", but when the sql is properly formatted and applied, the configuration panel use is simplified and clearer. This reduces the need to use statements such as:

Choose 60 for hours, 1440 for days, etc... Instead one chooses hours, or days and the value 60 or 1440, respectively is stored in the database and used in calculations...

The SQL that has worked for me, recognizing the "issue" with the incorrect use of double quotes which was also identified through review of the ZC default installation sql for similar type of options to be provided is:

The above worked on a ZC 1.5.4 installation and was finally error free... Didn't perform as desired, but didn't "throw an error"... Torvista may have other improvements in mind.

Acckkkk.. Worked, but didn't... Ie. It installed without error, but it did not provide the desired result... Feel like I should hang up my hat... :P

Incorrectly identified that one liner as a select_option instead of a select drop_down...

Therefore, now with that one change... The SQL to install User Tracking for the first time should be:

# If this script has been run before, this line is likely to cause an  error. Check logs folder (ZC V >=1.5.1) or cache folder (ZC V <=  1.5.0)  If this is the SQL command that caused an error, it may be  removed or commented.
INSERT INTO admin_pages (page_key, language_key, main_page, menu_key,  display_on_menu, sort_order) VALUES ('UserTracking',  'BOX_TOOLS_USER_TRACKING', 'FILENAME_USER_TRACKING', 'tools', 'Y',  10000);

# If this script has been run before, this line is likely to cause an  error. Check logs folder (ZC V >=1.5.1) or cache folder (ZC V <=  1.5.0)  If this is the SQL command that caused an error, it may be  removed or commented.
INSERT INTO configuration_group (`configuration_group_title`,  `configuration_group_description`, `visible`) VALUES ('User Tracking  Config', 'User Tracking', 1);

# Do not remove these SQL lines.  They are needed for further processing.
SELECT @UserTrackgID := configuration_group_id
FROM configuration_group where configuration_group_title = 'User Tracking Config';
UPDATE configuration_group SET sort_order = @UserTrackgID WHERE  configuration_group_id = @UserTrackgID AND configuration_group_id != 0;

# If this script has been run before, this line is likely to cause an  error. Check logs folder (ZC V >=1.5.1) or cache folder (ZC V <=  1.5.0)  If this is the SQL command that caused an error, it may be  removed or commented.
INSERT INTO admin_pages (page_key, language_key, main_page, page_params,  menu_key, display_on_menu, sort_order) VALUES ('UserTrackingConfig',  'BOX_TOOLS_USER_TRACKING_CONFIG', 'FILENAME_CONFIGURATION',  CONCAT('gID=', @UserTrackgID), 'configuration', 'Y', @UserTrackgID);

# DROP TABLE IF EXISTS user_tracking;  
/* The above line is not necessary on a new install as there is no expectation of another plugin
 naming the table the same.  If however, the below line is a problem, then either the above DROP TABLE should be uncommented
 or the below CREATE TABLE should be commented using double forward  slashes.  This will depend on whether the table exists by running this  previously or if another application has created this table. */
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(32) 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(128) NOT NULL default '',
  `referer_url` varchar(254) NOT NULL default '',
  `page_desc` varchar(64) NOT NULL default '',
  `customers_host_address` varchar(64) NOT NULL default ''
) ENGINE=MyISAM;

# DELETE FROM configuration where configuration_group_id = @UserTrackgID and @UserTrackgID != 0;  
/* The above line is not necessary for a new installation as this  information is not already entered in the database; however, if while  attempting to run this query, there may be an error at the insert below  and therefore this may need to be uncommented to move forward with it.   Be advised, this will remove all options that are currently on the User  Trackings configuration menu. */

# If this script has been run before, one or more of the below lines are  likely to cause an error. Check logs folder (ZC V >=1.5.1) or cache  folder (ZC V <= 1.5.0). The line(s) below up to the SQL command that  caused the error may be removed or commented out.

INSERT INTO configuration (configuration_title, configuration_key,  configuration_value, configuration_description, configuration_group_id,  sort_order, date_added, use_function, set_function) VALUES ('User  Tracking Visitors', 'ZEN_CONFIG_USER_TRACKING', 'true', 'Check the  Customers/Guests behaviour? (each click will be recorded)',  @UserTrackgID, 1, NOW(), NULL, 'zen_cfg_select_option(array(\'true\',  \'false\'),');
INSERT INTO configuration (configuration_title, configuration_key,  configuration_value, configuration_description, configuration_group_id,  sort_order, date_added, use_function, set_function) VALUES ('User  Tracking (ADMIN)', 'ADMIN_CONFIG_USER_TRACKING', 'true', 'Check the  ADMINs behaviour? (each click will be recorded)', @UserTrackgID, 2,  NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),');
INSERT INTO configuration (configuration_title, configuration_key,  configuration_value, configuration_description, configuration_group_id,  sort_order, date_added, use_function, set_function) VALUES ('User  Tracking (exclude this IP-Address)', 'CONFIG_USER_TRACKING_EXCLUDED',  'your IP', 'Do NOT record this IP Address<br>(like  webmaster/owners/Beta-testers)', @UserTrackgID, 10, NOW(), NULL, NULL);
INSERT INTO configuration (configuration_title, configuration_key,  configuration_value, configuration_description, configuration_group_id,  sort_order, date_added, use_function, set_function) VALUES ('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 you space !', @UserTrackgID, 15,  NOW(), NULL, NULL);
INSERT INTO configuration (configuration_title, configuration_key,  configuration_value, configuration_description, configuration_group_id,  sort_order, date_added, use_function, set_function) VALUES ('User  Tracking (Admin User Can Delete)',  'CONFIG_USER_TRACKING_ADMIN_CAN_DELETE', 'true', 'Allow Record Deletion  to be Active?<br/>Setting this to true will override ENTRY and  SESSION purges.<br/>Default <b>true</b><br/>',  @UserTrackgID, 25, NOW(), NULL, 'zen_cfg_select_option(array(\'true\',  \'false\'),');
INSERT INTO configuration (configuration_title, configuration_key,  configuration_value, configuration_description, configuration_group_id,  sort_order, date_added, use_function, set_function) VALUES ('User  Tracking (Admin User Can Delete Historical Data)',  'CONFIG_USER_TRACKING_ADMIN_CAN_DELETE_RECORDS', 'false', 'Allow Record  Deletion of records older than now - the purge duration set  below.<br/>This value is ignored if Admin User Can Delete is set  to true.  Otherwise set this to true to allow deletion of  visits.<br/>Default <b>false</b>.<br/>',  @UserTrackgID, 26, NOW(), NULL, 'zen_cfg_select_option(array(\'true\',  \'false\'),');
INSERT INTO configuration (configuration_title, configuration_key,  configuration_value, configuration_description, configuration_group_id,  sort_order, date_added, use_function, set_function) VALUES ('User  Tracking (Admin User Can Delete SESSIONS)',  'CONFIG_USER_TRACKING_ADMIN_CAN_DELETE_SESSIONS', 'false', 'Allow  SESSION Deletion to be Active?<br/>This setting is ignored if  Admin User Can Delete is set to true.<br/>Default  <b>false</b><br/>', @UserTrackgID, 27, NOW(), NULL,  'zen_cfg_select_option(array(\'true\', \'false\'),');
INSERT INTO configuration (configuration_title, configuration_key,  configuration_value, configuration_description, configuration_group_id,  sort_order, date_added, use_function, set_function) VALUES ('User  Tracking (Admin User Can Delete IP)',  'CONFIG_USER_TRACKING_ADMIN_CAN_DELETE_IP', 'false', 'Allow Deletion of  records that match the identified IP address?<br/>This setting is  ignored if Admin User Can Delete is set to true.<br/>Default  <b>false</b><br/>', @UserTrackgID, 28, NOW(), NULL,  'zen_cfg_select_option(array(\'true\', \'false\'),');
INSERT INTO configuration (configuration_title, configuration_key,  configuration_value, configuration_description, configuration_group_id,  sort_order, date_added, use_function, set_function) VALUES ('User  Tracking (Purge this Number)', 'CONFIG_USER_TRACKING_PURGE_NUMBER', '3',  'What is the number associated with purging before the current  date/time?<br/><br/>An example would be to choose 3 here and  units of days to delete data greater than 3 days before  today.<br/>', @UserTrackgID, 30, NOW(), NULL, NULL);
INSERT INTO configuration (configuration_title, configuration_key,  configuration_value, configuration_description, configuration_group_id,  sort_order, date_added, use_function, set_function) VALUES ('User  Tracking (Purge Units)', 'CONFIG_USER_TRACKING_PURGE_UNITS', '1440',  'Pick the units associate with the periodicity to allow purging  data.<br/>', @UserTrackgID, 31, NOW(), NULL,  'zen_cfg_select_drop_down(array(array(\'id\'=>\'60\',  \'text\'=>\'Hours\'), array(\'id\'=>\'1440\',  \'text\'=>\'Days\'),array(\'id\'=>\'10080\',  \'text\'=>\'Weeks\'),array(\'id\'=>\'43200\',  \'text\'=>\'Months (Based on 30 days)\')),');
INSERT INTO configuration (configuration_title, configuration_key,  configuration_value, configuration_description, configuration_group_id,  sort_order, date_added, use_function, set_function) VALUES ('User  Tracking (Type of User Interaction to Record)',  'CONFIG_USER_TRACKING_TRACK_TYPE_RECORD', '1', 'Type of user tracking to  record?<br/><br/>1 - All visitors.<br/>2 - Visitors  views where sessions have been started.<br/>3 - All users except  bots/spiders ( requires Configuration->Sessions->Prevent Spider  Sessions->true)  (Don\'t know if this works with Zen-Cart versions  older than 1.2.6d)<br/><br/>Related to above: If you set  Force Cookie Use->true, then at the first user entry, sessions do not  start!!! And in variants 2 and 3, user-tracking will not have started.  In this case you lose one click and do not log the referal. But if this  user is a returning user and has an old/previous zen cookie the session  started and your tracking system will collect this info. So, the result  beforehand is not logged or will not be known.<br/>',  @UserTrackgID, 40, NOW(), NULL, 'zen_cfg_select_option(array(\'1\',  \'2\',\'3\'),');
INSERT INTO configuration (configuration_title, configuration_key,  configuration_value, configuration_description, configuration_group_id,  sort_order, date_added, use_function, set_function) VALUES ('User  Tracking (your favorite WHOIS URL)', 'USER_TRACKING_WHOIS_URL',  'http://www.dnsstuff.com/tools/whois.ch?ip=', 'Put here you favorite  WHOIS tracking site<br>(the IP will follow automaticly after this  url)', @UserTrackgID, 50, NOW(), NULL, NULL);
INSERT INTO configuration (configuration_title, configuration_key,  configuration_value, configuration_description, configuration_group_id,  sort_order, date_added, use_function, set_function) VALUES ('User  Tracking (Show Product Category when tracking product clicks)',  'ZEN_CONFIG_SHOW_USER_TRACKING_CATEGORY', 'true', 'Show Product Category  when tracking product clicks', @UserTrackgID, 60, NOW(), NULL,  'zen_cfg_select_option(array(\'true\', \'false\'),');
INSERT INTO configuration (configuration_title, configuration_key,  configuration_value, configuration_description, configuration_group_id,  sort_order, date_added, use_function, set_function) VALUES ('User  Tracking (Version Installed)', 'CONFIG_USER_TRACKING_VERSION', '1.5',  'Shows the version number associated with user tracking and should be  updated with each upgrade', @UserTrackgID, 1000, NOW(), NULL,  'zen_cfg_select_option(array(\'CONFIG_USER_TRACKING_VERSION\'),');
15 Mar 2015, 7:23 AM
#696
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: User tracking mod

Incorrectly identified that one liner as a select_option instead of a select drop_down...
Correct...I found that yesterday but didn't have time to post it. The select_option function cannot handle multi arrays.

15 Mar 2015, 5:21 PM
#697
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: User tracking mod

@mc12345678
You need to clean out your pms...you cannot receive any more.

15 Mar 2015, 5:41 PM
#698
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: User tracking mod

torvista:

@mc12345678
You need to clean out your pms...you cannot receive any more.
Saw the failed attempts and rectified for immediate use.

1 May 2015, 4:38 AM
#699
chargin avatar

chargin

Zen Follower

Join Date:
Sep 2011
Posts:
136
Plugin Contributions:
0

Re: User tracking mod

Hi, is the latest version compatible with 1.39h?
I know on the download page it says "Compatible with Zen Cart v1.2.6 thru v1.3.x " but I just want to be sure. The readme in the download only talks of 1.50 and a 1.50 directory structure etc.
Which version should i download for 1.39h if the latest doesnt work? 1.4.3 perhaps?

I did search this thread for 1.39 but there was no reference in the thread at all...

1 May 2015, 8:56 AM
#700
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: User tracking mod

Chargin:

Hi, is the latest version compatible with 1.39h?
I know on the download page it says "Compatible with Zen Cart v1.2.6 thru v1.3.x " but I just want to be sure. The readme in the download only talks of 1.50 and a 1.50 directory structure etc.
Which version should i download for 1.39h if the latest doesnt work? 1.4.3 perhaps?

I did search this thread for 1.39 but there was no reference in the thread at all...

The. Forum seach will not return results for any thread if searched on the text representing a ZC version.

As to compatibility, the version uploaded as the "latest" as stated above does not include several improvements incorporated over the last couple of years.

As to compatibility, well, nothing that I know of. Has removed the ability to use it with ZC. 1.3.9, but I would suggest upgrading before the site becomes inoperable when the PHP version is increased beyond the support ofthe software.