Skip to content

Commit

Permalink
enable yandex metrika
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigoriiPrudnikov committed Jul 30, 2024
1 parent 59835a1 commit cdc688b
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

1 comment on commit cdc688b

@ekbdev
Copy link

@ekbdev ekbdev commented on cdc688b Jul 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for map ready!

✅ Preview
https://map-d239q1u8z-ekbdevs-projects.vercel.app
https://ekbdev-map-enable-ym.vercel.app

Built with commit cdc688b.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.