From ad10f35e1910ee0c5ebf75c7821faae16945037c Mon Sep 17 00:00:00 2001 From: anatolykopyl Date: Tue, 5 Jul 2022 02:34:43 +0300 Subject: [PATCH] Disable ya metrika --- app/pages/_app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/pages/_app.js b/app/pages/_app.js index 86ae5d3..547f65b 100644 --- a/app/pages/_app.js +++ b/app/pages/_app.js @@ -2,7 +2,7 @@ import { CssBaseline } from '@mui/material' import { createTheme, ThemeProvider } from '@mui/material/styles' import { appWithTranslation } from 'next-i18next' import { useEffect } from 'react' -import ym from 'react-yandex-metrika' +// import ym from 'react-yandex-metrika' import 'reset-css' import '../styles/global.scss' @@ -17,8 +17,8 @@ function App ({ Component, pageProps }) { useEffect(() => { if (typeof window !== 'undefined' && process.env.NODE_ENV === 'production') { - const url = window.location.pathname + window.location.search - ym('hit', url) + // const url = window.location.pathname + window.location.search + // ym('hit', url) } else { console.log('Not in production, not sending Yandex Metrika hit') }