templates/tracking/mailru_counter.html.twig line 1

Open in your IDE?
  1. {% set mailruCounterId = mailruId %}
  2. <!-- Top.Mail.Ru counter -->
  3. <script type="text/javascript">
  4.     var _tmr = window._tmr || (window._tmr = []);
  5.     _tmr.push({id: "{{ mailruCounterId }}", type: "pageView", start: (new Date()).getTime()});
  6.     (function (d, w, id) {
  7.         if (d.getElementById(id)) return;
  8.         var ts = d.createElement("script");
  9.         ts.type = "text/javascript";
  10.         ts.async = true;
  11.         ts.id = id;
  12.         ts.src = "https://top-fwz1.mail.ru/js/code.js";
  13.         var f = function () {
  14.             var s = d.getElementsByTagName("script")[0];
  15.             s.parentNode.insertBefore(ts, s);
  16.         };
  17.         if (w.opera == "[object Opera]") {
  18.             d.addEventListener("DOMContentLoaded", f, false);
  19.         } else {
  20.             f();
  21.         }
  22.     })(document, window, "tmr-code");
  23. </script>
  24. <!-- /Top.Mail.Ru counter -->