public function configureWidget(WidgetsList $widget)
 {
     $idSite = Common::getRequestVar('idSite', 0, 'int');
     if ($idSite < 1) {
         return;
     }
     $dimensions = $this->getActiveDimensionsForSite($idSite);
     foreach ($dimensions as $dimension) {
         if (!$dimension['active']) {
             continue;
         }
         if ($dimension['scope'] === CustomDimensions::SCOPE_ACTION) {
             $this->category = 'General_Actions';
         } elseif ($dimension['scope'] === CustomDimensions::SCOPE_VISIT) {
             $this->category = 'General_Visitors';
         } else {
             continue;
         }
         $this->widgetTitle = $dimension['name'];
         $this->widgetParams = array('idDimension' => $dimension['idcustomdimension']);
         parent::configureWidget($widget);
     }
 }