chore: Add Vercel Analytics integration and update package version

This commit is contained in:
ryanhex53
2024-11-10 13:50:22 +08:00
parent 5222c2b6a7
commit 6856061c32
3 changed files with 14 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ 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 { Analytics } from "@vercel/analytics/react";
const serverConfig = getServerSideConfig();
export const metadata: Metadata = {
@@ -65,6 +66,7 @@ export default function RootLayout({
<GoogleAnalytics gaId={serverConfig.gaId} />
</>
)}
<Analytics />
</body>
</html>
);