diff --git a/dicquo/templates/blocks/counters.html b/dicquo/templates/blocks/counters.html index f39fb65..7220ce5 100644 --- a/dicquo/templates/blocks/counters.html +++ b/dicquo/templates/blocks/counters.html @@ -1,2 +1,2 @@ {% load static %} - \ No newline at end of file + \ No newline at end of file diff --git a/public/static/js/counters.js b/public/static/js/counters.js index 16db91f..5818ccd 100644 --- a/public/static/js/counters.js +++ b/public/static/js/counters.js @@ -18,5 +18,11 @@ _tmr.push({id: "3744288", type: "pageView", start: (new Date()).getTime()}); f(); } })(document, window, "tmr-code"); -// //Rating Mail.ru counter - +// Yandex.Metrika counter +(function(m,e,t,r,i,k,a){ + m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; + m[i].l=1*new Date(); + for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }} + k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a) +})(window, document,'script','https://mc.yandex.ru/metrika/tag.js?id=106953063', 'ym'); +ym(106953063, 'init', {ssr:true, webvisor:true, clickmap:true, ecommerce:"dataLayer", referrer: document.referrer, url: location.href, accurateTrackBounce:true, trackLinks:true});