Is it not massive data in your database?
Plugin Author
ArielK
(@arielk-1)
I’m not sure, maybe it’s better to put Google Analytics on your dashboard π
Thread Starter
icm76
(@icm76)
it is, but i would like to make some data mining on it
so, would it be possible? if yes, what “hook” should be used?
Thread Starter
icm76
(@icm76)
would it e possible to use the “template-redirect” hook?
I’m very interested in this as well. I have a private (login required) wordpress site and I’d like to be able to see and be notified when any subscriber views a certain page.
I have a custom page type, so I wonder if there’s a hook/action I can call within the page template to invoke a log entry.
I know there’s probably a much more elegant way to do this with hooks within functions.php, but I’m wondering why I’m having trouble just invoking aal_insert_log itself on the page.php template I’m working on? I would expect this to snippet to add a new “login” line whose label would be the name of the page.
if (function_exists('aal_insert_log')) {
aal_insert_log( array(
'action' => 'logged_in',
'object_type' => 'User',
'object_subtype' => get_the_title(),
'user_id' => $user_ID,
'object_id' => $user_ID,
'object_name' => $user_info->user_login,
) );
}
It seems the function does exist, but calling it directly doesn’t cause anything to happen. Thanks for any help.
You need to call to this function after init action run.
Sorry but I figured out the problem in a different thread. It *was* storing records in the database, however the data wasn’t appearing because there’s a bug on the admin side in which (for some reason) data collected belonging to users with the role of “subscriber” is omitted from reports.