1
1
import BaiDuAnalytics from '@/app/BaiDuAnalytics' ;
2
2
import ClarityAnalytics from '@/app/ClarityAnalytics' ;
3
3
import RybbitAnalytics from '@/app/RybbitAnalytics' ;
4
- import GoogleAnalytics from '@/app/GoogleAnalytics' ;
5
4
// import { TailwindIndicator } from '@/components/TailwindIndicator';
6
5
import { ThemeProvider } from '@/components/ThemeProvider' ;
7
6
import { siteConfig } from '@/config/site' ;
@@ -13,7 +12,6 @@ import '@/styles/plyr.css';
13
12
import { Analytics } from '@vercel/analytics/react' ;
14
13
import { Viewport } from 'next' ;
15
14
import { Inter as FontSans } from 'next/font/google' ;
16
- import Script from 'next/script' ;
17
15
18
16
const fontSans = FontSans ( {
19
17
subsets : [ 'latin' ] ,
@@ -51,39 +49,13 @@ export default async function RootLayout({
51
49
52
50
return (
53
51
< 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 >
69
52
< 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
- ) }
80
53
< ThemeProvider attribute = "class" defaultTheme = { siteConfig . nextThemeColor } enableSystem = { false } forcedTheme = "dark" >
81
54
{ children }
82
55
{ /* <Footer /> */ }
83
56
< Analytics />
84
57
{ /* <TailwindIndicator /> */ }
85
58
</ ThemeProvider >
86
- < GoogleAnalytics />
87
59
< BaiDuAnalytics />
88
60
< ClarityAnalytics />
89
61
< RybbitAnalytics />
0 commit comments