1const metricsEventsActions={eventAction1:"clicked make tariff choise button",eventAction2:"clicked make order button",eventAction3:"confirmed order",eventAction4:"visited payment page site",eventAction5:"confirmed payment",eventAction6:"clicked check domain name button",eventAction7:"clicked choose domain button",eventAction8:"clicked order button",eventAction9:"clicked become_partner button",eventAction10:"clicked confirmed_become_partner button",eventAction11:"apple_payment"};function sendGAdata(id,node=null){isOneOf(id,["eventAction1","eventAction8","eventAction9"])&&setCookieProductName($(node).data("productName"));const productName=getCookie("product_name");let eventAction=metricsEventsActions[id],firstGoal="";if(eventAction==="apple_payment")firstGoal="APPLEPAYMENT",trackYandexGoal(firstGoal);else if(eventAction==="clicked make tariff choise button"||eventAction==="clicked become_partner button"){if(typeof productName<"u"){switch(productName){case"shared hosting, standard":eventAction+=", shared hosting, standard",firstGoal+="sh_standard_order_start";break;case"shared hosting, standard-wordpress":eventAction+=", shared hosting, standard",firstGoal+="sh_standard_wp_order_start";break;case"shared hosting, standard-joomla":eventAction+=", shared hosting, standard",firstGoal+="sh_standard_joomla_order_start";break;case"shared hosting, umi":eventAction+=", shared hosting, umi",firstGoal+="sh_standard_umi_order_start";break;case"shared hosting, reactive":eventAction+=", shared hosting, reactive",firstGoal+="sh_reactive_order_start";break;case"shared hosting, reactive-1c":eventAction+=", shared hosting, reactive",firstGoal+="sh_reactive_bitrix_order_start";break;case"vdskvm10":eventAction+=", vds",firstGoal+="vds_kvm10_order_start";break;case"vdskvm20":eventAction+=", vds",firstGoal+="vds_kvm20_order_start";break;case"vdskvm40":eventAction+=", vds",firstGoal+="vds_kvm40_order_start";break;case"vdskvm80":eventAction+=", vds",firstGoal+="vds_kvm80_order_start";break;case"partner":eventAction+=", partner_order_start";break;case"shared hosting, order_forsazh":eventAction+=", shared hosting, standard_forsazh";break;case"shared hosting, order_promo_bottom_forsazh":eventAction+=", shared hosting, standard_promo_bottom";break;case"shared hosting, order_promo_forsazh":eventAction+=", shared hosting, standard_promo";break;default:eventAction+=", "+productName}firstGoal!==""&&trackYandexGoal(firstGoal)}}else if(typeof eventAction<"u"&&typeof productName<"u")switch(productName){case"shared hosting, standard-wordpress":case"shared hosting, standard-joomla":eventAction+=", shared hosting, standard";break;case"shared hosting, reactive-1c":eventAction+=", shared hosting, reactive";break;case"vdskvm10":case"vdskvm20":case"vdskvm40":case"vdskvm80":eventAction+=", vds";break;case"partner":eventAction+=", order_partner";break;case"shared hosting, order_forsazh":eventAction+=", shared hosting, standard_forsazh";break;case"shared hosting, order_promo_bottom_forsazh":eventAction+=", shared hosting, standard_promo_bottom";break;case"shared hosting, order_promo_forsazh":eventAction+=", shared hosting, standard_promo";break;default:eventAction+=", "+productName}}function getCounterTypeByLocation(){return{"/partner/":"partner","/hosting/":"virtual_standart","/hosting/reactive/":"virtual_reactive","/hosting/bitrix/":"virtual_bitrix","/hosting/wordpress/":"virtual_wordpress","/hosting/joomla/":"virtual_joomla","/hosting/umi/":"virtual_umi","/hosting/mail/":"virtual_mail","/servers/":"servers","/vds/":"vds","/vds-kvm/":"vds_kvm","/domains/":"domain","/site-constructor/":"constructor","/hosting/promo/forsazh/":"promotariff","/cloud/DDoS-protection/":"cloud_ddos","/cloud/backup/":"cloud_backup","/cloud/s3/":"s3","/hosting-i-domen":"hosting_i_domen"}[document.location.pathname]}function trackYandexGoal(goalName){typeof yaCounter13740679<"u"&&yaCounter13740679.reachGoal(goalName)}function getGoalsByType(type,plan,planCategory,period){const goals=[];switch(type){case"vds":case"vds-kvm":case"vds_kvm":goals.push("VDS_COUNTER");break;case"cloud_ddos":goals.push("DDOS_COUNTER");break;case"cloud_backup":goals.push("BACKUP_COUNTER");break;case"promotariff":goals.push("PROMO_BH_COUNTER");break;case"partner":goals.push("PARTNER_COUNTER");break;case"s3":goals.push("S3_COUNTER");break;case"servers":goals.push("POWER_COUNTER");break;case"virtual_reactive":goals.push("REACTIVE_COUNTER");break;case"virtual_bitrix":goals.push("BITRIX_COUNTER");break;case"virtual_wordpress":goals.push("WORDPRESS_COUNTER");break;case"virtual_joomla":goals.push("JOOMLA_COUNTER");break;case"virtual_umi":goals.push("UMI_COUNTER");break;case"constructor":goals.push(plan==="7173"?"CONSTRUCTOR_FREE":"CONSTRUCTOR");break;case"virtual_standart":goals.push(...getVirtualStandardGoals(plan,peri
1od));break;case"domain":goals.push(...getDomainGoals(plan,period));break;case"hosting_i_domen":goals.push(...getHostingAndDomainGoals());break}return goals}function getVirtualStandardGoals(plan,period){const goals=["STANDART_COUNTER"];return plan==="7232"?goals.push("FORSAZH_COUNTER"):plan==="7336"&&(period==="1"?goals.push("VZLET_COUNTER"):period==="12"&&goals.push("VZLETYEAR_COUNTER")),goals}function getDomainGoals(plan,period){const goals=[];if(isOneOf(plan,["1","2","3","597","598","599","1244"]))goals.push("VDS_COUNTER");else if(isOneOf(plan,["7101","7102","7103","7109"]))goals.push("POWER_COUNTER");else if(isOneOf(plan,["7336","7348","7342"]))goals.push(...getVirtualStandardGoals(plan,period));else if(plan==="7232")goals.push("STANDART_COUNTER","FORSAZH_COUNTER");else if(isOneOf(plan,["7358","7118"]))goals.push("REACTIVE_COUNTER");else switch(plan){case"7173":goals.push("CONSTRUCTOR_FREE");break;case"7174":case"7175":goals.push("CONSTRUCTOR");break;case"7333":goals.push("UMI_COUNTER");break}return goals}function getHostingAndDomainGoals(planCategory){const goals=[];switch(planCategory){case"standart":goals.push("STANDART_COUNTER");break;case"VIP":goals.push("REACTIVE_COUNTER");break}return goals}function sendCountersData(){const type=getCounterTypeByLocation(),{plan,planCategory,period,domains}=SW.order.data,goals=new Set;for(const goal of getGoalsByType(type,plan,planCategory,period))goals.add(goal);goals.forEach(trackYandexGoal),domains.length>0&&trackYandexGoal("DOMAIN_COUNTER")}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.