From 46072fc556f83d2f7985c44ef4068f52d34e2197 Mon Sep 17 00:00:00 2001 From: KirllBashorin <99118225+KirllBashorin@users.noreply.github.com> Date: Tue, 5 Mar 2024 11:55:41 +0400 Subject: [PATCH] google analytics update --- src/pages/_app.tsx | 30 +++++++++++++++++++++++++++++- src/pages/_document.tsx | 30 ------------------------------ 2 files changed, 29 insertions(+), 31 deletions(-) diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 7dffec2..fcb8ef2 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -1,5 +1,6 @@ import { Component } from 'react'; import { NextPage } from 'next'; +import Script from 'next/script'; import type { AppProps } from 'next/app'; @@ -14,7 +15,34 @@ function MyApp({ Component, pageProps }: AppProps) { ).getLayout || ((page: JSX.Element) => <>{page}); // @ts-ignore - return getLayout(); + return getLayout( + <> + {/* eslint-disable-next-line @next/next/inline-script-id */} + + {/* eslint-disable-next-line @next/next/inline-script-id */} + + + + ); } // noinspection JSUnusedGlobalSymbols diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index 17e7301..f2e89a1 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -1,41 +1,11 @@ import { Html, Head, Main, NextScript } from 'next/document'; import React from 'react'; -// eslint-disable-next-line @next/next/no-script-in-document -import Script from 'next/script'; // noinspection JSUnusedGlobalSymbols export default function Document() { return ( - - {/* eslint-disable-next-line @next/next/inline-script-id */} - {/* eslint-disable-next-line @next/next/no-title-in-document-head */} Blockchain, IT, Web3 Development Company | Blockchain Software