Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

remove scripts

AykutSarac564ecb1c7717
diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx
index 4a98db02..12aa626f 100644
--- a/src/pages/_document.tsx
+++ b/src/pages/_document.tsx
@@ -8,8 +8,6 @@ import Document, {
import { SeoTags } from "src/components/SeoTags";
import { ServerStyleSheet } from "styled-components";
-const isDevelopment = process.env.NODE_ENV === "development";
-
class MyDocument extends Document {
static async getInitialProps(ctx: DocumentContext) {
const sheet = new ServerStyleSheet();
@@ -41,24 +39,6 @@ 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');
- `,
- }}
- />
- </>
- )}
<SeoTags
description="Simple visualization tool for your JSON data. No forced structure, paste your JSON and view it instantly."
title="JSON Visio"
@@ -72,7 +52,7 @@ class MyDocument extends Document {
crossOrigin="anonymous"
/>
<link
- href="https://fonts.googleapis.com/css2?family=Catamaran:wght@300;400;500;600;700&family=PT+Sans:wght@400;700&display=swap"
+ 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"
/>
</Head>