PageSourceSearch

https://help.mindbox.ru/docs/_assets/yandex.js

js mindbox.ru collected 2026-10-02 07:06:32 UTC 1,418 bytes, 34 lines download raw bytes

1function addYandexMetrikaScript() {
2    const head = document.head || document.getElementsByTagName('head')[0];
3    if (!head) {
4        return;
5    }
6
7    // Создаем основной скрипт Яндекс.Метрики
8    const script = document.createElement('script');
9    script.type = 'text/javascript';
10    script.async = true;
11    script.innerHTML = `
vendor: 436 bytes, lines 11-18
11
12        (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
13        m[i].l=1*new Date();
14        for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
15        k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
16        (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
17
18        ym(
18102715346
vendor: 148 bytes, lines 18-24
18, "init", {
19            clickmap:true,
20            trackLinks:true,
21            accurateTrackBounce:true,
22            webvisor:true
23        });
24    
24`;
25    head.appendChild(script);
26
27    // Создаем noscript элемент для случаев, когда JavaScript отключен
28    const noscriptContainer = document.createElement('div');
29    document.body.appendChild(noscriptContainer);
30    
31    noscriptContainer.innerHTML = '<noscript><div><img src="https://mc.yandex.ru/watch/102715346" style="position:absolute; left:-9999px;" alt="" /></div></noscript>';
32}
33
34addYandexMetrikaScript();

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.