'addUniqueVisitorsColumnToGivenReport', 'WidgetsList.add' => 'addWidgets', ); } function activate() { // Executed every time plugin is Enabled } function deactivate() { // Executed every time plugin is disabled } public function addUniqueVisitorsColumnToGivenReport($view) { $view = $view['view']; if ($view->getCurrentControllerName() == 'Referers' && $view->getCurrentControllerAction() == 'getWebsites' ) { $view->addColumnToDisplay('nb_uniq_visitors'); } } public function addWidgets() { // we register the widgets so they appear in the "Add a new widget" window in the dashboard // Note that the first two parameters can be either a normal string, or an index to a translation string Piwik_AddWidget('ExamplePlugin_exampleWidgets', 'ExamplePlugin_exampleWidget', 'ExamplePlugin', 'exampleWidget'); Piwik_AddWidget('ExamplePlugin_exampleWidgets', 'ExamplePlugin_photostreamMatt', 'ExamplePlugin', 'photostreamMatt'); Piwik_AddWidget('ExamplePlugin_exampleWidgets', 'ExamplePlugin_piwikForumVisits', 'ExamplePlugin', 'piwikDownloads'); } }