✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
fix analytics
AykutSaracf46b2cccdca6
diff --git a/src/components/GoogleAnalytics/index.tsx b/src/components/GoogleAnalytics/index.tsxdeleted file mode 100644index c7d1bff7..00000000--- a/src/components/GoogleAnalytics/index.tsx+++ /dev/null@@ -1,22 +0,0 @@-import React from "react";--export const GoogleAnalytics: React.FC = () => {- return (- <>- <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');- `,- }}- />- </>- );-};diff --git a/src/pages/_document.tsx b/src/pages/_document.tsxindex 861dea4e..e13e0a0a 100644--- a/src/pages/_document.tsx+++ b/src/pages/_document.tsx@@ -42,7 +42,23 @@ class MyDocument extends Document {return (<Html lang="en"><Head>- {!isDevelopment && <GoogleAnalytics />}+ {!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');+ `,+ }}+ />+ </>+ )}<SeoTagsdescription="Simple visualization tool for your JSON data. No forced structure, paste your JSON and view it instantly."title="JSON Visio"