getRequest(); if ($collector === 'Y' && !empty($keys[SITE_ID]) && $request->isAdminSection() !== true) { global $USER; $params = array(); if ($USER->IsAuthorized()) { $params['customerId'] = $USER->GetID(); } $str = ""; \Bitrix\Main\Page\Asset::getInstance()->addString($str, true); return true; } else { return false; } } }