M
M
mih_max2015-10-10 12:06:03
HTML
mih_max, 2015-10-10 12:06:03

How to fix the problem with code validation from Yandex Metrica?

The html validator swears at the installed Yandex metric on the site . What is the reason and how can it be corrected?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladislav Khusainov, 2015-10-12
@mih_max

Remove the code, make sure that your site works completely correctly without analytics. If so, then paste in the analytics code - and don't check the code again. Why are you upsetting yourself?

M
Maxim Timofeev, 2015-10-10
@webinar

1. If this question does not confuse Yandex, why does it confuse you?
2. Validator is not the ultimate truth. It shows what you should pay attention to, and does not require you to fix it necessarily.
3. If you ask a question, take the trouble to describe it in more detail. For example, what exactly did the validator give you? So he wrote "I don't like this Yandex metric code"?

M
mih_max, 2015-10-10
@mih_max

The comment above failed to paste the code. there he is:

<!-- Yandex.Metrika counter -->↩
<script src="https://mc.yandex.ru/metrika/watch.js" type="text/javascript"></script>↩
<script type="text/javascript">↩
try {↩
    var yaCounter32949789 = new Ya.Metrika({↩
        id:32949789,↩
        clickmap:true,↩
        trackLinks:true,↩
        accurateTrackBounce:true,↩
        webvisor:true,↩
        trackHash:true↩
    });↩
} catch(e) { }↩
</script>↩
<noscript><div><img src="https://mc.yandex.ru/watch/32949789" style="position:absolute; left:-9999px;" alt="" /></div></noscript>↩
<!-- /Yandex.Metrika counter -->↩
     	</head>↩
  <body id="top">↩
      <header id="header" class="skel-layers-fixed">↩
        <h1><a href="http://radioroomy.com/">roomy</a></h1>↩
        <nav id="nav">↩
          <ul>↩
            <li><a href="http://radioroomy.com/">Главная</a></li>↩
            <li><a href="podcast">Подкасты</a></li>↩
            <li><a href="interview">Интервью</a></li>↩
            <li><a href="mix">Миксы</a></li>↩
<li><a href="play" onclick="newMyWindow(this.href); return false;" class="button big special">ON AIR</a></li>↩
<script>↩
function newMyWindow(e) {↩
  var h = 550,↩
      w = 510;↩
  window.open(e, '', 'scrollbars=1,height='+Math.min(h, screen.availHeight)+',width='+Math.min(w, screen.availWidth)+',left='+Math.max(0, (screen.availWidth - w)/2)+',top='+Math.max(0, (screen.availHeight - h)/2));↩
}↩
</script>↩
          </ul>↩
        </nav>↩
      </header>↩

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question