<?php if( osc_get_preference('webvisor_new', 'yandex_metrica_pro')) {?>
<!-- Yandex.Metrika counter --> <script type="text/javascript" > (function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter<?php echo yandex_metrica_pro_id(); ?> = new Ya.Metrika2({ id:<?php echo yandex_metrica_pro_id(); ?>, clickmap:true, trackLinks:true, accurateTrackBounce:true<?php if(osc_get_preference('webvisor', 'yandex_metrica_pro')) { ?>, webvisor:true<?php } ?><?php if(osc_get_preference('hash', 'yandex_metrica_pro')) { ?>, trackHash:true<?php } ?><?php if(osc_get_preference('noindex', 'yandex_metrica_pro')) { ?>, ut:"noindex"<?php } ?> }); } 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 = "https://mc.yandex.ru/metrika/tag.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks2"); </script> <noscript><div><img src="https://mc.yandex.ru/watch/<?php echo yandex_metrica_pro_id(); ?>" style="position:absolute; left:-9999px;" alt="" /></div></noscript> <!-- /Yandex.Metrika counter -->
<?php } else{ ?>
<!-- Yandex.Metrika counter --> <script type="text/javascript" > (function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter<?php echo yandex_metrica_pro_id(); ?> = new Ya.Metrika({ id:<?php echo yandex_metrica_pro_id(); ?>, clickmap:true, trackLinks:true, accurateTrackBounce:true<?php if(osc_get_preference('webvisor', 'yandex_metrica_pro')) { ?>, webvisor:true<?php } ?><?php if(osc_get_preference('hash', 'yandex_metrica_pro')) { ?>, trackHash:true<?php } ?><?php if(osc_get_preference('noindex', 'yandex_metrica_pro')) { ?>, ut:"noindex"<?php } ?> }); } 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 = "https://mc.yandex.ru/metrika/watch.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks"); </script> <noscript><div><img src="https://mc.yandex.ru/watch/<?php echo yandex_metrica_pro_id(); ?>?ut=noindex" style="position:absolute; left:-9999px;" alt="" /></div></noscript> <!-- /Yandex.Metrika counter -->
<?php } ?>