task 17291 | код метрики
This commit is contained in:
1 parent
714d00cc6e
commit
08c051b569
1 file changed
+6
-20
@@ -340,29 +340,15 @@ function theme_yandex_metrika() {
|
|||||||
<!-- Yandex.Metrika counter -->
|
<!-- Yandex.Metrika counter -->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
(function(m,e,t,r,i,k,a){
|
(function(m,e,t,r,i,k,a){
|
||||||
m[i] = m[i] || function() {
|
m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
|
||||||
(m[i].a = m[i].a || []).push(arguments)
|
|
||||||
};
|
|
||||||
m[i].l=1*new Date();
|
m[i].l=1*new Date();
|
||||||
for (var j = 0; j < document.scripts.length; j++) {
|
for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
|
||||||
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)
|
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', 'ym');
|
})(window, document,'script','https://mc.yandex.ru/metrika/tag.js?id=113689913', 'ym');
|
||||||
ym(100213356, 'init', {
|
|
||||||
webvisor: true,
|
ym(113689913, 'init', {ssr:true, webvisor:true, clickmap:true, ecommerce:"dataLayer", referrer: document.referrer, url: location.href, accurateTrackBounce:true, trackLinks:true});
|
||||||
clickmap: true,
|
|
||||||
referrer: document.referrer,
|
|
||||||
url: location.href,
|
|
||||||
accurateTrackBounce: true,
|
|
||||||
trackLinks: true
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
<noscript>
|
<noscript><div><img src="https://mc.yandex.ru/watch/113689913" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
|
||||||
<div><img src="https://mc.yandex.ru/watch/100213356" style="position:absolute; left:-9999px;" alt="" /></div>
|
|
||||||
</noscript>
|
|
||||||
<!-- /Yandex.Metrika counter -->
|
<!-- /Yandex.Metrika counter -->
|
||||||
<?php }
|
<?php }
|
||||||
add_action('wp_head', 'theme_yandex_metrika', 1);
|
add_action('wp_head', 'theme_yandex_metrika', 1);
|
||||||
|
|||||||
Reference in new issue
Block a user