PageSourceSearch

https://matritsa-sudby.ru/js/common.js

js matritsa-sudby.ru collected 2026-10-07 20:17:21 UTC 1,963 bytes, 73 lines download raw bytes

1var mscroll = false;
2var mcInitialized = false;
3function initialiseCounters(){
4    if(window.innerWidth < 200){
5        return false;
6    }
7
8    window.dataLayer = window.dataLayer || [];
9    // function gtag(){dataLayer.push(arguments);}
10    // gtag('js', new Date());
11    // gtag('config', 'G-E11ZEG7RF9');
12    //
13    // let s = document.createElement('script')
14    // s.src = "https://www.googletagmanager.com/gtag/js?id=G-E11ZEG7RF9";
15    // s.type = "text/javascript";
16    // s.async = "true";
17    // document.head.appendChild(s);
18
19
20
21    (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
22        m[i].l=1*new Date();
23        for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
24        k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
25    (window, document, "script", "https://mc.webvisor.org/metrika/tag_ww.js", "ym");
26
27    ym(99219771, "init", {
28        clickmap:true,
29        trackLinks:true,
30        accurateTrackBounce:true,
31        webvisor:true
32    });
33
34    mcInitialized = true;
35}
36window.addEventListener('scroll', () => {
37    if (mscroll === false) {
38        mscroll = true;
39        setTimeout(() => {
40            initialiseCounters();
41            document.querySelectorAll('[data-goal]').forEach(element => {
42                element.addEventListener('click', ()=>{
43                    reachGoal(element.getAttribute('data-goal'))
44                })
45            });
46        }, 1000)
47    }
48});
49
50function reachGoal(key){
51    if(!mcInitialized){
52        initialiseCounters()
53
54        setTimeout(()=>{
55            try {
56                ym(99219771,'reachGoal', key)
57            } catch(e){
58
59            }
60        }, 100);
61    }
62    else {
63        try {
64            ym(99219771,'reachGoal', key)
65        } catch(e){
66
67        }
68    }
69}
70
71if(document.referrer === "https://metrika.yandex.ru/"){
72    initialiseCounters()
73}

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.