if ($Skip) { return NS_TRACK_GENERAL::FinishTracking(); } $Fraud = NS_TRACK_GENERAL::CheckClickFraud($Settings, $VisId, $ClickSubId); NS_TRACK_GENERAL::UpdateVisitorAction(); if (NS_TRACK_MISC::ValidId($ClickSubId) && $ClickSubId > 0) { NS_TRACK_GENERAL::UpdateVisitorClick(); } if ($UpdateVisPath || $KeepVisPath) { NS_TRACK_GENERAL::UpdateVisitorPath(); } if ($CookieLogSet && NS_TRACK_GENERAL::CheckTrackingMode()) { $CookieLogSet = false; } if ($CookieLogSet) { NS_TRACK_GENERAL::SetCookieLog(); } if ($FindLastNode) { NS_TRACK_VISITOR::FindLastNode($VisId); } NS_TRACK_VISITOR::UpdateByRegs(); if (defined("TRACK_ERRORS") && TRACK_ERRORS && !defined("NS_PHP_TRACKING")) { $ResTime = NS_TRACK_MISC::GetMicrotime() - $StartTime; $Query = "INSERT INTO track_time (TRACK_TIME) VALUES ('{$ResTime}')"; $Db->Query($Query); for ($i = 0; $i < count($Logs->Errors); $i++) { $Db->Query("INSERT INTO track_error (ERROR) VALUES ('" . addslashes($Logs->Errors[$i]) . "')"); } } return NS_TRACK_GENERAL::FinishTracking();