Changes for page Main.GlobalJS

Last modified by strixadmin on 2025/03/27 08:36

From version 18.1
edited by strixadmin
on 2025/03/27 08:19
Change comment: There is no comment for this version
To version 14.1
edited by strixadmin
on 2025/03/27 08:09
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,3 +1,22 @@
1 1  {{velocity}}
2 2  #set($discard = $xwiki.jsx.use('Main.GlobalJS'))
3 3  {{/velocity}}
4 +
5 +{{html}}
6 +<!-- Yandex.Metrika counter -->
7 +<script>
8 + (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
9 + m[i].l=1*new Date();
10 + for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
11 + k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
12 + (window, document, "script", "https://mc.yandex.ru/metrika/tag.js&quot;, "ym");
13 +
14 + ym(100508154, "init", {
15 + clickmap:true,
16 + trackLinks:true,
17 + accurateTrackBounce:true,
18 + webvisor:true
19 + });
20 +</script>
21 +<!-- /Yandex.Metrika counter -->
22 +{{/html}}
XWiki.JavaScriptExtension[0]
Code
... ... @@ -1,9 +1,10 @@
1 1  <!-- Yandex.Metrika counter -->
2 +<script>
2 2   (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
3 3   m[i].l=1*new Date();
4 4   for (var j = 0; j <document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
5 5   k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
6 - (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
7 + (window, document, "script", "https://mc.yandex.ru/metrika/tag.js&quot;, "ym");
7 7  
8 8   ym(100508154, "init", {
9 9   clickmap:true,
... ... @@ -11,4 +11,5 @@
11 11   accurateTrackBounce:true,
12 12   webvisor:true
13 13   });
15 +</script>
14 14  <!-- /Yandex.Metrika counter -->