Sha256: 01f0373bf77a27d317c458a148c949dcebd23c3fa69f07f6cc11cbd803c75084

Contents?: true

Size: 846 Bytes

Versions: 2

Compression:

Stored size: 846 Bytes

Contents

<script type="text/javascript">
(function (d, w, c) {
    (w[c] = w[c] || []).push(function() {
      try { w.<%= counter_name %> = new Ya.Metrika(<%= counter_options %>);
      } catch(e) { }
    });

    var n = d.getElementsByTagName("script")[0],
        s = d.createElement("script"),
        f = function () { n.parentNode.insertBefore(s, n); };
    s.type = "text/javascript";
    s.async = true;
    s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";

    if (w.opera == "[object Opera]") {
        d.addEventListener("DOMContentLoaded", f, false);
    } else { f(); }
})(document, window, "yandex_metrika_callbacks");
</script>
<% if noscript %>
  <noscript><div><img src="//mc.yandex.ru/watch/<%= counter %>" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<% end %>

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
yandex-metrica-rails-0.1.3 lib/yandex-metrica/templates/async.erb
yandex-metrika-rails-0.1.2 lib/yandex-metrika/templates/async.erb