Hi
I want to add some data corresponding to actions logged in log_action table.
So, i created my own table in piwik db. I use the hook Tracker.Action.record to call my method where i use an insert query and try to insert the data.
When Actions are logged, data is not getting logged in my table.
function getListHooksRegistered()
{
$hooks = array(
'Tracker.Action.record' => 'myHandler',
'ArchiveProcessing_Day.compute' => 'archiveDay',
'ArchiveProcessing_Period.compute' => 'archivePeriod',
);
return $hooks;
}
function archiveDay( $notification )
{
$archiveProcessing = $notification->getNotificationObject();
}
function archivePeriod( $notification )
{
$archiveProcessing = $notification->getNotificationObject();
}
function myHandler( $notification )
{
$info = $notification->getNotificationInfo();
$query = // insert query
Piwik_Query($query);
}
Please someone help me out of it!!