Skip to content

Commit

Permalink
feat(homepage): add ya metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
serjilyashenko committed Oct 27, 2024
1 parent 945d947 commit 9abbd0b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions apps/homepage/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,22 @@ export default defineConfig({
rel: "apple-touch-icon",
href: "/apple-touch-icon.png",
}
},
// Yandex.Metrika counter
{
tag: "script",
attrs: {
type: "text/javascript",
content: "(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(98742410, \"init\", { clickmap:true, trackLinks:true, accurateTrackBounce:true }); "
}
},
{
tag: "noscript",
attrs: {
content: "<div><img src=\"https://mc.yandex.ru/watch/98742410\" style=\"position:absolute; left:-9999px;\" alt=\"\" /></div>"
}
}
// /Yandex.Metrika counter
],
logo: {
light: "./src/assets/logo-light.svg",
Expand Down

0 comments on commit 9abbd0b

Please sign in to comment.