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;
    }
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;
    }
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 ; }
Gather fields=>values that needs to be updated for the existing visit in log_visit

@param $visitIsConverted
@return array
Gather fields = > values that needs to be updated for the existing visit in log_visit