mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-17 14:33:41 +08:00
chore: Add Vercel Analytics integration in Vercel only
This commit is contained in:
@@ -54,6 +54,7 @@ export default function RootLayout({
|
|||||||
{serverConfig?.isVercel && (
|
{serverConfig?.isVercel && (
|
||||||
<>
|
<>
|
||||||
<SpeedInsights />
|
<SpeedInsights />
|
||||||
|
<Analytics />
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{serverConfig?.gtmId && (
|
{serverConfig?.gtmId && (
|
||||||
@@ -66,7 +67,6 @@ export default function RootLayout({
|
|||||||
<GoogleAnalytics gaId={serverConfig.gaId} />
|
<GoogleAnalytics gaId={serverConfig.gaId} />
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<Analytics />
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user