/** * The implementation of this method in Piwik_ViewDataTable passes to the graph whether the * goals icon should be displayed or not. Here, we use it to implicitly add the goal metrics * to the metrics picker. */ public function enableShowGoals() { parent::enableShowGoals(); $goalMetrics = array('nb_conversions', 'revenue'); $this->selectableColumns = array_merge($this->selectableColumns, $goalMetrics); $this->setColumnTranslation('nb_conversions', Piwik_Translate('Goals_ColumnConversions')); $this->setColumnTranslation('revenue', Piwik_Translate('General_TotalRevenue')); }