Sha256: ac85631792ed193cd1360a8c530a067990b9547cd5f3f262735cfde1c19c77e8

Contents?: true

Size: 816 Bytes

Versions: 2

Compression:

Stored size: 816 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>
<noscript><div><img src="//mc.yandex.ru/watch/<%= counter %>" style="position:absolute; left:-9999px;" alt="" /></div></noscript>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yandex-metrika-rails-0.1.1 lib/yandex-metrika/templates/async.erb
yandex-metrika-rails-0.0.1 lib/yandex-metrika/templates/async.erb