mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
禁用谷歌分析,没啥用
This commit is contained in:
parent
7636a82d5d
commit
688049839e
@ -6,7 +6,7 @@ import { getClientConfig } from "./config/client";
|
||||
import type { Metadata, Viewport } from "next";
|
||||
import { SpeedInsights } from "@vercel/speed-insights/next";
|
||||
import { getServerSideConfig } from "./config/server";
|
||||
import { GoogleTagManager, GoogleAnalytics } from "@next/third-parties/google";
|
||||
import { GoogleTagManager } from "@next/third-parties/google";
|
||||
const serverConfig = getServerSideConfig();
|
||||
import { Providers } from "@/app/providers";
|
||||
// import { Viewport } from "next";
|
||||
@ -87,16 +87,16 @@ export default function RootLayout({
|
||||
<SpeedInsights />
|
||||
</>
|
||||
)}
|
||||
{serverConfig?.gtmId && (
|
||||
<>
|
||||
<GoogleTagManager gtmId={serverConfig.gtmId} />
|
||||
</>
|
||||
)}
|
||||
{serverConfig?.gaId && (
|
||||
<>
|
||||
<GoogleAnalytics gaId={serverConfig.gaId} />
|
||||
</>
|
||||
)}
|
||||
{/*{serverConfig?.gtmId && (*/}
|
||||
{/* <>*/}
|
||||
{/* <GoogleTagManager gtmId={serverConfig.gtmId} />*/}
|
||||
{/* </>*/}
|
||||
{/*)}*/}
|
||||
{/*{serverConfig?.gaId && (*/}
|
||||
{/* <>*/}
|
||||
{/* <GoogleAnalytics gaId={serverConfig.gaId} />*/}
|
||||
{/* </>*/}
|
||||
{/*)}*/}
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user