categoryId = 'General_Actions'; $this->subcategoryId = 'Events_Events'; $this->processedMetrics = array( new AverageEventValue() ); } public function configureWidgets(WidgetsList $widgetsList, ReportWidgetFactory $factory) { if (!$this->isSubtableReport) { $widget = $factory->createWidget()->setParameters(array( 'secondaryDimension' => API::getInstance()->getDefaultSecondaryDimension($this->action) )); $widgetsList->addToContainerWidget('Events', $widget); } } public function configureView(ViewDataTable $view) { $this->configureFooterMessage($view); } protected function configureFooterMessage(ViewDataTable $view) { if ($this->isSubtableReport) { // no footer message for subtables return; } $out = ''; EventDispatcher::getInstance()->postEvent('Template.afterEventsReport', array(&$out)); $view->config->show_footer_message = $out; } }