Hi again guys, I’m trying to add some data to the table where the custom variables are displayed, but i can’t get it,
I added a new constant in the Piwik_Archive class, something like this:
const INDEX_NB_CUSTOM_DATA = 28;
This in the Controller.php (CustomVariable)
$view->setColumnsToDisplay( array(‘label’,‘nb_custom_data’,‘nb_visits’, ‘nb_actions’) );
This in ArchiveProcessing.php
static public function getCoreMetrics()
{
return array(
‘nb_uniq_visitors’,
‘nb_custom_data’,
in the core/controller.php
$metricsForAllPeriods=array(‘nb_custom_data’,‘nb_visits’, ‘nb_actions’), $labelDisplayed=true)
in plugins/api/api.php
’nb_custom_data’ => ‘Custom Data’,
And now I want to add information in that new row, but I can’t do it, i don’t know how! can someone give me and example or tell me what I have to do?
Thanks in advance