Installing multiple tags on a site

Sometimes you may need to put multiple tags on a page at once. You can put the image insertion code that is used when JavaScript is disabled inside a single noscript element.

<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");

ym(XXXXXX, "init", {});
ym(YYYYYY, "init", { webvisor: true });

</script>
<noscript>
  <div>
    <img src="https://mc.yandex.ru/watch/XXXXXX?ut=noindex" style="..." alt="" />
    <img src="https://mc.yandex.ru/watch/YYYYYY?ut=noindex" style="..." alt="" />
  </div>
</noscript>
<!-- /Yandex.Metrika counter -->

Here XXXXXX and YYYYYY are the numbers of Yandex.Metrica tags.