A customer from me want to track ONLY registered users. Here is the code to include into tpl_footer.php:
CheersCode:<?php if (ZEN_CONFIG_USER_TRACKING == 'true' AND $_SESSION['customer_id'] != '') { zen_update_user_tracking(); } ?>
A customer from me want to track ONLY registered users. Here is the code to include into tpl_footer.php:
CheersCode:<?php if (ZEN_CONFIG_USER_TRACKING == 'true' AND $_SESSION['customer_id'] != '') { zen_update_user_tracking(); } ?>
How do you know if they are a "registered user" if they haven't logged in?
This means you would only start tracking most of them when they commence the checkout process.
You will miss all the clicks they used to get to that point.
To me thats the important bit, not the half dozen or so clicks to get thru the checkout.
Sure a small number login when they hit the website, but on my websites that is very small.
Hello,
I'm using this mod in v1.51. Superuser can use this mod without problems but no the rest of profiles (They get always:
Sorry, your security clearance does not allow you to access this resource.
Please contact your site administrator if you believe this to be incorrect.
Sorry for any inconvenience.)
The original sql code for the registration:
/MYADMIN/includes/extra_datafiles/user_tracking_database_tables.php:Code:INSERT INTO admin_pages (page_key, language_key, main_page, page_params, menu_key, display_on_menu, sort_order) VALUES ('UserTracking', 'BOX_TOOLS_USER_TRACKING', 'FILENAME_USER_TRACKING', '', 'tools', 'Y', 10000); 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_USER_TRACKING_CONFIG', '', 'tools', 'Y', 10001);
- sql code exist in the admin_pages tableCode:<?php define('TABLE_USER_TRACKING', DB_PREFIX . 'user_tracking'); define('DIR_WS_FLAGS', 'images/flags/'); define('BOX_TOOLS_USER_TRACKING', 'User Tracking'); define('BOX_TOOLS_USER_TRACKING_CONFIG', 'User Tracking Config'); define('FILENAME_USER_TRACKING', 'user_tracking.php'); define('FILENAME_USER_TRACKING_CONFIG', 'user_tracking_config.php'); ?>
- admin_page_to_profiles, profile_id to page_key is ok (profile_id =2, page_key = UserTracking and UserTrackingConfig)
- admin_profiles profile_id=2 is defined
I'm lost, I don't see nothing wrong here. I need your light.
Cheers!
Last edited by pititis; 13 May 2013 at 01:38 PM.
Solved!
Just remove the .php extension in FILENAME_USER_TRACKING and FILENAME_USER_TRACKING_CONFIG
/MYADMIN/includes/extra_datafiles/user_tracking_database_tables.php
CheersPHP Code:<?php
define('TABLE_USER_TRACKING', DB_PREFIX . 'user_tracking');
define('DIR_WS_FLAGS', 'images/flags/');
define('BOX_TOOLS_USER_TRACKING', 'User Tracking');
define('BOX_TOOLS_USER_TRACKING_CONFIG', 'User Tracking Config');
define('FILENAME_USER_TRACKING', 'user_tracking.');
define('FILENAME_USER_TRACKING_CONFIG', 'user_tracking_config');
?>
Last edited by pititis; 13 May 2013 at 03:01 PM.