Skip to content

Commit

Permalink
enable yandex metrika (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigoriiPrudnikov authored Jul 30, 2024
1 parent 59835a1 commit d854ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ export default function Document() {
<script async src="https://tally.so/widgets/embed.js" />

{/* eslint-disable-next-line react/no-danger */}
{/* {process.env.YANDEX_METRIKA && (
{process.env.YANDEX_METRIKA && (
<div
dangerouslySetInnerHTML={{
__html: `<script>(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(${process.env.YANDEX_METRIKA}, "init", { clickmap:true, trackLinks:true, accurateTrackBounce:true });</script><noscript><div><img src="https://mc.yandex.ru/watch/${process.env.YANDEX_METRIKA}" style="position:absolute; left:-9999px;" alt="" /></div></noscript>`,
}}
/>
)} */}
)}
</body>
</Html>
);
Expand Down

0 comments on commit d854ae9

Please sign in to comment.