This commit is contained in:
@@ -2,7 +2,7 @@ import { CssBaseline } from '@mui/material'
|
|||||||
import { createTheme, ThemeProvider } from '@mui/material/styles'
|
import { createTheme, ThemeProvider } from '@mui/material/styles'
|
||||||
import { appWithTranslation } from 'next-i18next'
|
import { appWithTranslation } from 'next-i18next'
|
||||||
import { useEffect } from 'react'
|
import { useEffect } from 'react'
|
||||||
import ym from 'react-yandex-metrika'
|
// import ym from 'react-yandex-metrika'
|
||||||
|
|
||||||
import 'reset-css'
|
import 'reset-css'
|
||||||
import '../styles/global.scss'
|
import '../styles/global.scss'
|
||||||
@@ -17,8 +17,8 @@ function App ({ Component, pageProps }) {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (typeof window !== 'undefined' && process.env.NODE_ENV === 'production') {
|
if (typeof window !== 'undefined' && process.env.NODE_ENV === 'production') {
|
||||||
const url = window.location.pathname + window.location.search
|
// const url = window.location.pathname + window.location.search
|
||||||
ym('hit', url)
|
// ym('hit', url)
|
||||||
} else {
|
} else {
|
||||||
console.log('Not in production, not sending Yandex Metrika hit')
|
console.log('Not in production, not sending Yandex Metrika hit')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user