Skip to content

Commit

Permalink
chore: Add Vercel Analytics integration in Vercel only
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhex53 committed Nov 10, 2024
1 parent 6856061 commit bc2f36e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default function RootLayout({
{serverConfig?.isVercel && (
<>
<SpeedInsights />
<Analytics />
</>
)}
{serverConfig?.gtmId && (
Expand All @@ -66,7 +67,6 @@ export default function RootLayout({
<GoogleAnalytics gaId={serverConfig.gaId} />
</>
)}
<Analytics />
</body>
</html>
);
Expand Down

0 comments on commit bc2f36e

Please sign in to comment.