add Yandex metrika

This commit is contained in:
Alexander Popov 2022-04-13 16:19:46 +03:00
parent 919f6a0188
commit 2d684d4645
Signed by: iiiypuk
GPG Key ID: 3F76816AEE08F908
3 changed files with 23 additions and 1 deletions

View File

@ -22,6 +22,7 @@ if __name__ == '__main__':
minified = minified.replace('icon"href', 'icon" href') minified = minified.replace('icon"href', 'icon" href')
minified = minified.replace('&amp#xab;', '«') minified = minified.replace('&amp#xab;', '«')
minified = minified.replace('&amp#xbb;', '»') minified = minified.replace('&amp#xbb;', '»')
minified = minified.replace('-9999px;"alt', '-9999px;" alt')
HTML_SRC = minified HTML_SRC = minified
# Save HTML # Save HTML
@ -40,7 +41,7 @@ if __name__ == '__main__':
file.write(CSS_SRC) file.write(CSS_SRC)
# Copy other files # Copy other files
os.popen('cp src/favicon.ico src/humans.txt dist/' ) os.popen('cp src/favicon.ico src/humans.txt src/yandex_*.html dist/' )
# Make archive # Make archive
os.popen('cd ./dist/; tar -czf ../dist.tar.gz *') os.popen('cd ./dist/; tar -czf ../dist.tar.gz *')

View File

@ -79,5 +79,20 @@
new ClipboardJS('.button'); new ClipboardJS('.button');
} }
</script> </script>
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(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();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(88269176, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/88269176" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
</body> </body>
</html> </html>

View File

@ -0,0 +1,6 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>Verification: 83cad514465f385a</body>
</html>