new file: components/Yandex.tsx modified: package-lock.json modified: package.json modified: pages/_app.tsx modified: pages/_document.tsx modified: yarn.lockmaster
parent
3c7f069970
commit
03ad8bbd46
@ -0,0 +1,23 @@ |
|||||||
|
import React from 'react'; |
||||||
|
import Script from 'next/script' |
||||||
|
|
||||||
|
export const YandexMetrics = () => { |
||||||
|
return( |
||||||
|
<div className="container_yandex"> |
||||||
|
<Script |
||||||
|
dangerouslySetInnerHTML={{ |
||||||
|
__html: ` |
||||||
|
(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(89626868, "init", { |
||||||
|
clickmap:true, |
||||||
|
trackLinks:true, |
||||||
|
accurateTrackBounce:true |
||||||
|
}); |
||||||
|
`,
|
||||||
|
}} |
||||||
|
/> |
||||||
|
</div> |
||||||
|
) |
||||||
|
} |
Loading…
Reference in new issue