Skip to content

Commit a1fb3b5

Browse files
authored
remove google (#106)
1 parent 436e5c4 commit a1fb3b5

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

projects/fastgpt/app/layout.tsx

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import BaiDuAnalytics from '@/app/BaiDuAnalytics';
22
import ClarityAnalytics from '@/app/ClarityAnalytics';
33
import RybbitAnalytics from '@/app/RybbitAnalytics';
4-
import GoogleAnalytics from '@/app/GoogleAnalytics';
54
// import { TailwindIndicator } from '@/components/TailwindIndicator';
65
import { ThemeProvider } from '@/components/ThemeProvider';
76
import { siteConfig } from '@/config/site';
@@ -13,7 +12,6 @@ import '@/styles/plyr.css';
1312
import { Analytics } from '@vercel/analytics/react';
1413
import { Viewport } from 'next';
1514
import { Inter as FontSans } from 'next/font/google';
16-
import Script from 'next/script';
1715

1816
const fontSans = FontSans({
1917
subsets: ['latin'],
@@ -51,39 +49,13 @@ export default async function RootLayout({
5149

5250
return (
5351
<html lang={(lang && lang[0]) || defaultLocale} suppressHydrationWarning>
54-
<head>
55-
{!isChineseDomain && (
56-
<Script
57-
id="gtm-script"
58-
strategy="afterInteractive"
59-
dangerouslySetInnerHTML={{
60-
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
61-
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
62-
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
63-
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
64-
})(window,document,'script','dataLayer','GTM-W9HPZZ22');`
65-
}}
66-
/>
67-
)}
68-
</head>
6952
<body className={cn('min-h-screen font-sans antialiased', fontSans.variable)}>
70-
{!isChineseDomain && (
71-
<noscript>
72-
<iframe
73-
src="https://www.googletagmanager.com/ns.html?id=GTM-W9HPZZ22"
74-
height="0"
75-
width="0"
76-
style={{ display: 'none', visibility: 'hidden' }}
77-
></iframe>
78-
</noscript>
79-
)}
8053
<ThemeProvider attribute="class" defaultTheme={siteConfig.nextThemeColor} enableSystem={false} forcedTheme="dark">
8154
{children}
8255
{/* <Footer /> */}
8356
<Analytics />
8457
{/* <TailwindIndicator /> */}
8558
</ThemeProvider>
86-
<GoogleAnalytics />
8759
<BaiDuAnalytics />
8860
<ClarityAnalytics />
8961
<RybbitAnalytics />

0 commit comments

Comments
 (0)