✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
fix analytics script
AykutSarac37e5d105c45b
diff --git a/src/components/GoogleAnalytics/index.tsx b/src/components/GoogleAnalytics/index.tsxindex 1762b512..c7d1bff7 100644--- a/src/components/GoogleAnalytics/index.tsx+++ b/src/components/GoogleAnalytics/index.tsx@@ -1,27 +1,20 @@-import Script from "next/script";import React from "react";-const GA_TRACKING_ID = "G-JKZEHMJBMH";-export const GoogleAnalytics: React.FC = () => {return (<>- <Script- strategy="afterInteractive"- src={`https://www.googletagmanager.com/gtag/js?id=${GA_TRACKING_ID}`}+ <script+ async+ src="https://www.googletagmanager.com/gtag/js?id=G-JKZEHMJBMH"/>- <Script- id="gtag-init"- strategy="afterInteractive"+ <scriptdangerouslySetInnerHTML={{- __html: `- window.dataLayer = window.dataLayer || [];+ __html: `window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());- gtag('config', '${GA_TRACKING_ID}', {- page_path: window.location.pathname,- });- `,++ gtag('config', 'G-JKZEHMJBMH');+ `,}}/></>