diff options
author | Wladislaw Merezhko <infinitylx@infinitylx.org.ua> | 2012-12-08 18:03:58 +0200 |
---|---|---|
committer | Wladislaw Merezhko <infinitylx@infinitylx.org.ua> | 2012-12-08 18:03:58 +0200 |
commit | 10b0b8cc08487d4fa6e138b0b55a6263a62d2840 (patch) | |
tree | 7006e22f089f9e5769d4ecdede30fd7dfd38bba5 /new-bootstrap2/templates/metryka.html | |
parent | 1a90d22b3445fa4eadbcc25ab11e9adaa0ca3875 (diff) | |
download | pelican-themes-10b0b8cc08487d4fa6e138b0b55a6263a62d2840.tar.gz |
Create updated theme based on bootstrap2
Diffstat (limited to 'new-bootstrap2/templates/metryka.html')
-rw-r--r-- | new-bootstrap2/templates/metryka.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/new-bootstrap2/templates/metryka.html b/new-bootstrap2/templates/metryka.html new file mode 100644 index 0000000..7fe1871 --- /dev/null +++ b/new-bootstrap2/templates/metryka.html @@ -0,0 +1,25 @@ +{% if YANDEX_METRYKA %} +<!-- Yandex.Metrika counter --> +<script type="text/javascript"> +(function (d, w, c) { + (w[c] = w[c] || []).push(function() { + try { + w.yaCounter{{ YANDEX_METRYKA }} = new Ya.Metrika({id:{{ YANDEX_METRYKA }}, enableAll: true, trackHash:true}); + } 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); + } else { f(); } +})(document, window, "yandex_metrika_callbacks"); +</script> +<noscript><div><img src="//mc.yandex.ru/watch/{{ YANDEX_METRYKA }}" style="position:absolute; left:-9999px;" alt="" /></div></noscript> +<!-- /Yandex.Metrika counter --> +{% endif %}
\ No newline at end of file |