function reachYandexGoal(goal){ try{ yaCounter9999999.reachGoal(goal); }catch(ex){ console.error("Счетчик не найден. \n" + ex); } return true; }