Tracker.Action.record hook not working

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!!

In getInformation(), set trackerPlugin => true.

I have set it to true… still doesn’t work.


public function getInformation()
{
	$info = array(
	'name' => 'MyPlugin',
	'description' => 'description',
	'author' => '',
	'author_homepage' => 'piwik.org/',
	'version' => 0.1,
	'TrackerPlugin' => true, 
	);
                return $info;
}