chore: Add Vercel Analytics integration in Vercel only

This commit is contained in:
ryanhex53 2024-11-10 20:59:38 +08:00
parent 6856061c32
commit bc2f36e7c0
1 changed files with 1 additions and 1 deletions

View File

@ -54,6 +54,7 @@ export default function RootLayout({
{serverConfig?.isVercel && (
<>
<SpeedInsights />
<Analytics />
</>
)}
{serverConfig?.gtmId && (
@ -66,7 +67,6 @@ export default function RootLayout({
<GoogleAnalytics gaId={serverConfig.gaId} />
</>
)}
<Analytics />
</body>
</html>
);