소스 검색

remove gtag

AykutSarac 3 년 전
부모
커밋
134693dc06
3개의 변경된 파일3개의 추가작업 그리고 20개의 파일을 삭제
  1. 1 1
      next.config.js
  2. 0 0
      public/sw.js.map
  3. 2 19
      src/pages/_document.tsx

+ 1 - 1
next.config.js

@@ -16,7 +16,7 @@ const nextConfig = {
   pwa: {
     dest: "public",
     register: true,
-    scope: '/editor'
+    scope: "/editor",
   },
 };
 

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
public/sw.js.map


+ 2 - 19
src/pages/_document.tsx

@@ -39,23 +39,8 @@ class MyDocument extends Document {
     return (
       <Html lang="en">
         <Head>
-          {!isDevelopment && (
-            <>
-              <script
-                async
-                src="https://www.googletagmanager.com/gtag/js?id=G-JKZEHMJBMH"
-              />
-              <script
-                dangerouslySetInnerHTML={{
-                  __html: `window.dataLayer = window.dataLayer || [];
-                          function gtag(){dataLayer.push(arguments);}
-                          gtag('js', new Date());
-                          gtag('config', 'G-JKZEHMJBMH');
-                    `,
-                }}
-              />
-            </>
-          )}
+          <link rel="manifest" href="/manifest.json" />
+          <meta name="theme-color" content="#36393E" />
           <SeoTags
             description="Simple visualization tool for your JSON data. No forced structure, paste your JSON and view it instantly."
             title="JSON Visio - Directly onto graphs"
@@ -72,8 +57,6 @@ class MyDocument extends Document {
             href="https://fonts.googleapis.com/css2?family=Catamaran:wght@300;400;500;600;700&family=PT+Sans:wght@400;500;700&display=swap"
             rel="stylesheet"
           />
-          <link rel="manifest" href="/manifest.json" />
-          <meta name="theme-color" content="#36393E" />
         </Head>
         <body>
           <Main />

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.