From f37ca3ea186c0cedcc2095f2ccb12f6c9343a57d Mon Sep 17 00:00:00 2001 From: unknownproperty Date: Sun, 14 Jul 2024 03:16:41 +0300 Subject: [PATCH] feat: add metrika --- apps/xi.front/app/layout.tsx | 37 ++++++-- apps/xi.front/app/metrika.ts | 19 ++++ apps/xi.front/app/providers.tsx | 162 -------------------------------- 3 files changed, 49 insertions(+), 169 deletions(-) create mode 100644 apps/xi.front/app/metrika.ts diff --git a/apps/xi.front/app/layout.tsx b/apps/xi.front/app/layout.tsx index 1a8915e9..b70e7c6e 100644 --- a/apps/xi.front/app/layout.tsx +++ b/apps/xi.front/app/layout.tsx @@ -2,9 +2,10 @@ import '@xipkg/tailwind/index.css'; import { Metadata } from 'next'; import { Inter } from 'next/font/google'; -import React, { ReactNode } from 'react'; +import React, { ReactNode, Suspense } from 'react'; import Script from 'next/script'; import { Providers } from './providers'; +import YandexMetrika from './metrika'; const inter = Inter({ weight: ['400', '500', '600', '700'], @@ -45,12 +46,34 @@ export default function RootLayout({ children }: { children: ReactNode }) { return ( - + + + +