I think I’m not using in the right way the hook archiveDay, but I’ve been searching for issues similar to mine, but didn’t find anything, so I’ll post my problem.
In my plugin on plugin_name.php file, I create the hook of archiveDay, and make a query which data I want archiveDay to store.
I try to store the data this way,
$query = “Select …”; //The select is ok,
$res = $archiveProcessing->db->query($query, array( $archiveProcessing->getStartDatetimeUTC(), $archiveProcessing->getEndDatetimeUTC()));
$recordName = ‘My_data’;
$columnToSortByBeforeTruncation = Piwik_Archive::INDEX_NB_VISITS;
$maximumRowsInDataTable = Zend_Registry::get(‘config’)->General->datatable_archiving_maximum_rows_standard;
When I run cron the data doesn’t stores and doesn’t throw error message or anything that can point me in the right direction.
Maybe I’m doing this wrong, and there is another way.
Any help will be really appreciated.
And sorry about my english.