setSegment('eventAction'); $segment->setName('Events_EventAction'); $this->addSegment($segment); } public function getName() { return Piwik::translate('Events_EventAction'); } public function getActionId() { return Action::TYPE_EVENT_ACTION; } public function onLookupAction(Request $request, Action $action) { if (!($action instanceof ActionEvent)) { return false; } $eventAction = $request->getParam('e_a'); $eventAction = trim($eventAction); if (strlen($eventAction) > 0) { return $eventAction; } return false; } }