Advertisement
Guest User

Untitled

a guest
Apr 21st, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. Код счётчика можно устанавливать в любое место HTML-кода, желательно ближе к началу страницы.
  2.  
  3. <!-- Yandex.Metrika counter -->
  4. <script type="text/javascript">
  5. (function (d, w, c) {
  6. (w[c] = w[c] || []).push(function() {
  7. try {
  8. w.yaCounter29834574 = new Ya.Metrika({id:29834574,
  9. webvisor:true,
  10. clickmap:true,
  11. trackLinks:true,
  12. accurateTrackBounce:true});
  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 = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/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="//mc.yandex.ru/watch/29834574" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
  29. <!-- /Yandex.Metrika counter -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement