Browse Source

add metrics

main
matthew 2 years ago
parent
commit
8080287c38
  1. 16
      searching-front/pages/_document.tsx

16
searching-front/pages/_document.tsx

@ -12,6 +12,22 @@ class MyDocument extends Document {
<Head />
<body>
<Main />
<script type="text/javascript" dangerouslySetInnerHTML={{__html: `
(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", "ym");
ym(90644479, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true
});`}} >
</script>
<NextScript />
<div id="modal-root"></div>
</body>

Loading…
Cancel
Save