Advertisement
Guest User

Yandex Metrica's code

a guest
May 24th, 2018
2,785
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- Yandex.Metrika counter -->
  2. <script type="text/javascript" >
  3.     (function (d, w, c) {
  4.         (w[c] = w[c] || []).push(function() {
  5.             try {
  6.                 w.yaCounter48992180 = new Ya.Metrika({
  7.                     id:48992180,
  8.                     clickmap:true,
  9.                     trackLinks:true,
  10.                     accurateTrackBounce:true,
  11.                     webvisor:true
  12.                 });
  13.             } catch(e) { }
  14.         });
  15.  
  16.         var n = d.getElementsByTagName("script")[0],
  17.             s = d.createElement("script"),
  18.             f = function () { n.parentNode.insertBefore(s, n); };
  19.         s.type = "text/javascript";
  20.         s.async = true;
  21.         s.src = "https://cdn.jsdelivr.net/npm/yandex-metrica-watch/watch.js";
  22.  
  23.         if (w.opera == "[object Opera]") {
  24.             d.addEventListener("DOMContentLoaded", f, false);
  25.         } else { f(); }
  26.     })(document, window, "yandex_metrika_callbacks");
  27. </script>
  28. <noscript><div><img src="https://mc.yandex.ru/watch/48992180" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
  29. <!-- /Yandex.Metrika counter -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement