39 lines
1.4 KiB
React
39 lines
1.4 KiB
React
import './globals.css';
|
||
import Script from 'next/script';
|
||
|
||
export const metadata = {
|
||
title: 'ProgCode.Ru - блог программиста',
|
||
description: 'Статьи о PHP, Bitrix, JavaScript, D, Windows и практических задачах разработки.',
|
||
};
|
||
|
||
export default function RootLayout({ children }) {
|
||
return (
|
||
<html lang="ru">
|
||
<body>
|
||
<Script id="yandex-metrika" strategy="afterInteractive">
|
||
{`
|
||
(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?id=109268613', 'ym');
|
||
|
||
ym(109268613, 'init', {ssr:true, webvisor:true, clickmap:true, ecommerce:"dataLayer", referrer: document.referrer, url: location.href, accurateTrackBounce:true, trackLinks:true});
|
||
`}
|
||
</Script>
|
||
<noscript>
|
||
<div>
|
||
<img
|
||
src="https://mc.yandex.ru/watch/109268613"
|
||
style={{ position: 'absolute', left: '-9999px' }}
|
||
alt=""
|
||
/>
|
||
</div>
|
||
</noscript>
|
||
{children}
|
||
</body>
|
||
</html>
|
||
);
|
||
}
|