Привет, нашел на корпоративном сайте код со ссылкой на сторонний ресурс, интересно знать что это, подскажите плз!!!!
<script type="text/javascript" defer="" async="" src="https://www.ballistica.ru/btr2.min.js"></script>
(function(e){function n(a,F,c){var d="",e="";c&&(d=new Date,d.setTime(d.getTime()+6E4*c),d="; expires="+d.toGMTString());b.domain&&(e="; domain="+b.domain);document.cookie=a+"="+escape(F) +d+e+"; path=/"}function g(a){var b,d=a+"=",c=document.cookie.split(";");for(a=0;a<c .length;a++){for(b=c[a];" "===b.charAt(0)
b=b.substring(1,b.length);if(0=== b.indexOf(d))return unescape(b.substring(d.length,b.length))}return null}function m(a){n(a,"",-1)}function y(a){if(a=(new RegExp("[?&]"+encodeURIComponent(a)+
"=([^&]*)")).exec(location.search))return decodeURIComponent(a[1])}function p(a){g("br_debug")&&e.console.log(a)}function z(){for(var a;a=A.shift()
a();B=!0}function G(a){B?a():A.push(a)}function v(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"==a?b:b&3|8).toStri ng(16)})}function C(){D&&n("br_events",JSON.stringify(f),1)}function E(a){G(function(){D&&d.ajax({async:!0,type:"POST", url:H,data:a,dataType:"jsonp",error:function(){3<f .length&&
(f=JSON.parse("[]"))},success:function(){for(var b=0;b<f.length;b++)if(f[b].id==a.id){f.splice(b,1);break}C()}})})}function q(a){a=d(a.currentTarget);return{tag:a.get(0).tagN ame.toLowerCase(),id:a.attr("id"),"class":a.attr(" class"),url:e.location.href,page:u}}var b=e.btr||{},d=e.jQuery||e.$,h,k,c,r,w,x,B=!1,A=[],D="undefined"!==typeof JSON&&"undefined"!==typeof JSON.stringify,f=[],u=b.page||e.location.pathname,l={},t=b.trKey||"te stkey",H=b.eventsUrl||"https://www.ballistica.ru/btr/?key="+t,t=b.utmName||
"utm_source",I=b.utmIdName||"tid",J=b.utmValue||"b trmail";if("undefined"===typeof dataLayer)l.basket=[];else for(c=0;c<dataLayer.length;c++)"undefined"!==typeo f dataLayer[c].basket&&(l.basket=dataLayer[c].basket),"undefined"!==typeof dataLayer[c].uid&&(l.uid=dataLayer[c].uid),"undefined"!==typeof dataLayer[c].auth&&(l.auth=dataLayer[c].auth);h=g("br_visit");k=g("br_visitor");r=g("br_r eferrer");x=g("ringid");c=g("br_track");w||y(t)!=J ||(w=y(I));h&&k&&!c?(p("Active visit"),z())
c&&m("br_track"),h||
(h=v(),n("br_visit",h,240)),g("br_visit")?(p("Visi t started"),k||(k=x?x:v(),n("br_visitor",k,1051200)) ,t={visit_token:h,visitor_token:k,platform:b.platf orm||"Web",landing_page:e.location.href,screen_wid th:e.screen.width,screen_height:e.screen.height},! r&&0<document.referrer.length&&(r=document.referre r,n("br_referrer",r,240)),p(t))
p("Cookies disabled"),z()));b.getVisitId=b.getVisitToken=func tion(){return h};b.getVisitorId=b.getVisitorToken=function(){ret urn k};b.reset=function(){m("br_visit");m("br_visitor" );
m("br_events");m("br_track");m("br_referer");retur n!0};b.debug=function(a){!1===a?m("br_debug"):n("b r_debug","t",525600);return!0};b.track=function(a, b){var d={id:v(),visit_token:h,visitor_token:k,name:a,ref erer:r,remail:w,properties:b,datalayer:l,time
new Date).getTime()/1E3};p(d);f.push(d);C();setTimeout(function(){E(d) },1E3)};b.trackView=function(){b.track("$view",{ur l:e.location.href,page:u})};b.trackClicks=function (){d(document).on("click","a, button, input[type=submit]",function(a){var c=d(a.currentTarget);
a=q(a);a.text="input"==a.tag?c.val():d.trim(c.text ().replace(/[\s\r\n]+/g," "));a.href=c.attr("href");b.track("$click",a)})};b .trackSubmits=function(){d(document).on("submit"," form",function(a){a=q(a);b.track("$submit",a)})};b .trackChanges=function(){d(document).on("change"," input, textarea, select",function(a){var c=d(a.currentTarget);a=q(a);a.text="input"==a.tag? c.val():d.trim(c.text().replace(/[\s\r\n]+/g," "));b.track("$change",a)})};b.trackEmailInput=func tion(){d(document).on("change","input[name=email],input[name=registerEmail]",
function(a){var c=d(a.currentTarget);a=q(a);a.text=c.val();!/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/i.test(a.text)&&/^\S+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z0-9]+)(\]?)$/i.test(a.text)&&"undefined"===typeof l.uid&&b.track("$emailinput",a)})};b.trackEmailSub mit=function(){d(document).on("submit","form",func tion(a){var c=d(a.currentTarget);a=q(a);a.text=c.find("input[name=email]").val();!/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/i.test(a.text)&&/^\S+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z0-9]+)(\]?)$/i.test(a.text)&&"undefined"===
typeof l.uid&&b.track("$emailsubmit",a)})};b.trackBasket= function(){u==basketUrl&&b.track("$basket",{page:u ,basket:l})};b.trackAll=function(){b.trackView();b .trackEmailSubmit();b.trackEmailInput()};try{f=JSO N.parse(g("br_events")||"[]")}catch(a){}for(c=0;c<f.length;c++)E(f[c]);e.btr=b})(window);btr.trackAll();