original_string: private function getExistingVisitFieldsToUpdate($visitIsConverted)
      {
          $valuesToUpdate = array();
  
          $valuesToUpdate = $this->setIdVisitorForExistingVisit($valuesToUpdate);
  
          $dimensions = $this->getAllVisitDimensions();
          $valuesToUpdate = $this->triggerHookOnDimensions($dimensions, 'onExistingVisit', $valuesToUpdate);
  
          if ($visitIsConverted) {
              $valuesToUpdate = $this->triggerHookOnDimensions($dimensions, 'onConvertedVisit', $valuesToUpdate);
          }
  
          // Custom Variables overwrite previous values on each page view
          return $valuesToUpdate;
      }
code: private function getExistingVisitFieldsToUpdate($visitIsConverted)
      {
          $valuesToUpdate = array();
  
          $valuesToUpdate = $this->setIdVisitorForExistingVisit($valuesToUpdate);
  
          $dimensions = $this->getAllVisitDimensions();
          $valuesToUpdate = $this->triggerHookOnDimensions($dimensions, 'onExistingVisit', $valuesToUpdate);
  
          if ($visitIsConverted) {
              $valuesToUpdate = $this->triggerHookOnDimensions($dimensions, 'onConvertedVisit', $valuesToUpdate);
          }
  
          // Custom Variables overwrite previous values on each page view
          return $valuesToUpdate;
      }
code_tokens: private function getExistingVisitFieldsToUpdate ( $ visitIsConverted ) { $ valuesToUpdate = array ( ) ; $ valuesToUpdate = $ this -> setIdVisitorForExistingVisit ( $ valuesToUpdate ) ; $ dimensions = $ this -> getAllVisitDimensions ( ) ; $ valuesToUpdate = $ this -> triggerHookOnDimensions ( $ dimensions , 'onExistingVisit' , $ valuesToUpdate ) ; if ( $ visitIsConverted ) { $ valuesToUpdate = $ this -> triggerHookOnDimensions ( $ dimensions , 'onConvertedVisit' , $ valuesToUpdate ) ; } // Custom Variables overwrite previous values on each page view return $ valuesToUpdate ; }
docstring: Gather fields=>values that needs to be updated for the existing visit in log_visit
  
  @param $visitIsConverted
  @return array
docstring_tokens: Gather fields = > values that needs to be updated for the existing visit in log_visit