add Yandex metrika
This commit is contained in:
parent
919f6a0188
commit
2d684d4645
@ -22,6 +22,7 @@ if __name__ == '__main__':
|
||||
minified = minified.replace('icon"href', 'icon" href')
|
||||
minified = minified.replace('«', '«')
|
||||
minified = minified.replace('»', '»')
|
||||
minified = minified.replace('-9999px;"alt', '-9999px;" alt')
|
||||
HTML_SRC = minified
|
||||
|
||||
# Save HTML
|
||||
@ -40,7 +41,7 @@ if __name__ == '__main__':
|
||||
file.write(CSS_SRC)
|
||||
|
||||
# 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
|
||||
os.popen('cd ./dist/; tar -czf ../dist.tar.gz *')
|
||||
|
@ -79,5 +79,20 @@
|
||||
new ClipboardJS('.button');
|
||||
}
|
||||
</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>
|
||||
</html>
|
||||
|
6
src/yandex_83cad514465f385a.html
Normal file
6
src/yandex_83cad514465f385a.html
Normal file
@ -0,0 +1,6 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
</head>
|
||||
<body>Verification: 83cad514465f385a</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user