diff --git a/pages/yandex.metrika.jade b/pages/yandex.metrika.jade index 7b409116..18d72270 100644 --- a/pages/yandex.metrika.jade +++ b/pages/yandex.metrika.jade @@ -3,29 +3,11 @@ //- img(src='//bs.yandex.ru/informer/24027460/3_1_FFFFFFFF_EFEFEFFF_0_pageviews', style='width: 88px; height: 31px; border: 0;', alt='Яндекс.Метрика', title='Яндекс.Метрика: данные за сегодня (просмотры, визиты и уникальные посетители)', onclick='try{Ya.Metrika.informer({i:this,id:24027460,lang:\'ru\'});return false}catch(e){}') //- //Yandex.Metrika informer -//Yandex.Metrika counter -script(type='text/javascript') - (function (d, w, c) { - (w[c] = w[c] || []).push(function() { - try { - w.yaCounter24027460 = new Ya.Metrika({id:24027460, - webvisor:true, - clickmap:true, - trackLinks:true, - accurateTrackBounce:true}); - } catch(e) { } - }); - var n = d.getElementsByTagName("script")[0], - s = d.createElement("script"), - f = function () { n.parentNode.insertBefore(s, n); }; - s.type = "text/javascript"; - s.async = true; - s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js"; - if (w.opera == "[object Opera]") { - d.addEventListener("DOMContentLoaded", f, false); - } else { f(); } - })(document, window, "yandex_metrika_callbacks"); +// Yandex.Metrika counter + +script + include yandex.metrika.js noscript div img(src='//mc.yandex.ru/watch/24027460', style='position: absolute; left: -9999px;', alt='') -//Yandex.Metrika counter \ No newline at end of file +// Yandex.Metrika counter \ No newline at end of file diff --git a/pages/yandex.metrika.js b/pages/yandex.metrika.js new file mode 100644 index 00000000..b7553556 --- /dev/null +++ b/pages/yandex.metrika.js @@ -0,0 +1 @@ +(function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter24027460 = new Ya.Metrika({id:24027460, webvisor:true, clickmap:true, trackLinks:true, accurateTrackBounce:true}); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks"); \ No newline at end of file