Skip to content
This repository was archived by the owner on Sep 6, 2024. It is now read-only.

Commit aa1fca3

Browse files
committed
add metrica
1 parent cbc10c9 commit aa1fca3

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.vitepress/config.mts

+14
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,20 @@ export default defineConfig({
4242
"link",
4343
{ rel: "icon", href: "https://gallery.vein-lang.org/favicon.ico" },
4444
],
45+
['script', {}, `
46+
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
47+
m[i].l=1*new Date();
48+
for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
49+
k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
50+
(window, document, "script", "/ytag.js", "ym");
51+
52+
ym(98154877, "init", {
53+
clickmap:true,
54+
trackLinks:true,
55+
accurateTrackBounce:true
56+
});
57+
`
58+
]
4559
],
4660
sitemap: {
4761
hostname: "https://vein-lang.org/",

vercel.json

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
"source": "/install.sh",
1212
"destination": "https://raw.githubusercontent.com/vein-lang/vein/master/metadata/scripts/install.sh",
1313
"permanent": false
14+
},
15+
{
16+
"source": "/ytag.js",
17+
"destination": "https://mc.yandex.ru/metrika/tag.js",
18+
"permanent": true
1419
}
1520
]
1621
}

0 commit comments

Comments
 (0)