From 30fc50600009ca54f085d594d838803c107e87f2 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Sat, 6 May 2023 11:28:08 +0700
Subject: fix document page

---
 src/pages/_document.jsx | 78 +++++++++++++++++++++++--------------------------
 1 file changed, 37 insertions(+), 41 deletions(-)

(limited to 'src/pages/_document.jsx')

diff --git a/src/pages/_document.jsx b/src/pages/_document.jsx
index a1725b73..dbe210aa 100644
--- a/src/pages/_document.jsx
+++ b/src/pages/_document.jsx
@@ -9,61 +9,59 @@ export default function MyDocument() {
       <Head>
         <link rel='icon' href='/favicon.ico' />
 
-        {env === 'production' && (
-          <>
-            <meta name='facebook-domain-verification' content='328wmjs7hcnz74rwsqzxvq50rmbtm2' />
-            <Script
-              async
-              strategy='beforeInteractive'
-              src='https://www.googletagmanager.com/gtag/js?id=UA-10501937-1'
-            />
+        <meta name='facebook-domain-verification' content='328wmjs7hcnz74rwsqzxvq50rmbtm2' />
+        <Script
+          async
+          strategy='beforeInteractive'
+          src='https://www.googletagmanager.com/gtag/js?id=UA-10501937-1'
+        />
 
-            <Script
-              id='google-analytics-ua'
-              strategy='beforeInteractive'
-              dangerouslySetInnerHTML={{
-                __html: `
+        <Script
+          id='google-analytics-ua'
+          strategy='beforeInteractive'
+          dangerouslySetInnerHTML={{
+            __html: `
               window.dataLayer = window.dataLayer || [];
               function gtag(){dataLayer.push(arguments);}
               gtag('js', new Date());
               gtag('config', 'UA-10501937-1');
             `
-              }}
-            />
+          }}
+        />
 
-            <Script
-              async
-              strategy='beforeInteractive'
-              src='https://www.googletagmanager.com/gtag/js?id=G-G1W8MNZ11P'
-            />
+        <Script
+          async
+          strategy='beforeInteractive'
+          src='https://www.googletagmanager.com/gtag/js?id=G-G1W8MNZ11P'
+        />
 
-            <Script
-              id='google-analytics-ga'
-              strategy='beforeInteractive'
-              dangerouslySetInnerHTML={{
-                __html: `
+        <Script
+          id='google-analytics-ga'
+          strategy='beforeInteractive'
+          dangerouslySetInnerHTML={{
+            __html: `
               window.dataLayer = window.dataLayer || [];
               function gtag(){dataLayer.push(arguments);}
               gtag('js', new Date());
               gtag('config', 'G-G1W8MNZ11P');
             `
-              }}
-            />
+          }}
+        />
 
-            <Script
-              id='google-tag-manager'
-              strategy='afterInteractive'
-              dangerouslySetInnerHTML={{
-                __html: `
+        <Script
+          id='google-tag-manager'
+          strategy='afterInteractive'
+          dangerouslySetInnerHTML={{
+            __html: `
               (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var 
               f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 
               'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
               })(window,document,'script','dataLayer','GTM-PHRB7RP');
             `
-              }}
-            />
+          }}
+        />
 
-            {/* <Script
+        {/* <Script
           id='tawk-script-tag'
           strategy='afterInteractive'
           dangerouslySetInnerHTML={{
@@ -81,12 +79,10 @@ export default function MyDocument() {
           }}
         /> */}
 
-            <meta
-              name='google-site-verification'
-              content='uHuW_mZhjv_fUg3do-lV8Mo7R2vVjF4MPQhTXFP3jH4'
-            />
-          </>
-        )}
+        <meta
+          name='google-site-verification'
+          content='uHuW_mZhjv_fUg3do-lV8Mo7R2vVjF4MPQhTXFP3jH4'
+        />
       </Head>
       <body>
         <Main />
-- 
cgit v1.2.3

