protected function setVisitorParams($visitorId, $accountId = '', $isTrackingMethodSet = false) { $this->visitParams->setVisitorId($visitorId); $this->visitParams->setAccountid($accountId); if (!$isTrackingMethodSet) { $this->visitParams->setTrackMethod($this->getTrackingMethod()); } }
$destUrl = $banner->replaceClickConstants($destUrl, $clickFieldsValues); @header('Location: ' . $destUrl, true, 301); $getParams = '?'; foreach ($_GET as $name => $value) { $getParams .= $name.'='.urlencode($value).'&'; } $params = new Lib_VisitParams(); $params->setReferrerUrl(Lib_Server::getReferer()); $params->setTrackMethod('N'); $params->setGet(rtrim($getParams, '&?')); $params->setCookies(Lib_VisitorCookie::readOldCookies()); $params->setIp(Lib_Server::getRemoteIp()); $params->setUserAgent(Lib_Server::getUserAgent()); $params->setAccountid(@$_GET['accountId']); $params->setVisitorId(@$_GET['visitorId']); Lib_VisitorCookie::readVisitorIdAndAccountId($params, $settings, false); if ($settings->isOfflineVisitProcessing()) { $settings->saveVisit($params, $settings->get('visitsTableInput')); return; } $visit = new Pap_Db_Visit(0); foreach ($params->toArray() as $key => $value) { $visit->set($key, $value); }