From a723c9c380474f3c6ff57ae639bccf7e6f79814f Mon Sep 17 00:00:00 2001 From: Santthosh Selvadurai Date: Fri, 7 Jun 2024 22:08:52 -0700 Subject: [PATCH] #84 Add Google Analytics --- package.json | 1 + pnpm-lock.yaml | 3 +++ src/app/layout.tsx | 8 ++------ 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index f35b934..e117e0c 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "busboy": "^1.6.0", "flowbite": "^2.2.1", "flowbite-react": "^0.7.2", + "google": "link:@next/third-parties/google", "groq-sdk": "^0.3.3", "highlight.js": "^11.9.0", "marked-react": "^2.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index db401a9..ceab790 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -62,6 +62,9 @@ dependencies: flowbite-react: specifier: ^0.7.2 version: 0.7.2(@types/react@18.2.47)(esbuild@0.19.11)(next@14.1.1)(react-dom@18.2.0)(react@18.2.0)(tailwindcss@3.4.1) + google: + specifier: link:@next/third-parties/google + version: link:@next/third-parties/google groq-sdk: specifier: ^0.3.3 version: 0.3.3 diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 660feff..ae40356 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,18 +1,13 @@ import { Flowbite, ThemeModeScript } from 'flowbite-react'; -import type { Metadata } from 'next'; import { Inter } from 'next/font/google'; import './globals.css'; import { flowbiteTheme } from './theme'; import { Analytics } from '@vercel/analytics/react'; import { UserProvider } from '@auth0/nextjs-auth0/client'; +import { GoogleAnalytics } from '@next/third-parties/google' const inter = Inter({ subsets: ['latin'] }); -export const metadata: Metadata = { - title: 'Assistants Hub', - description: 'Administration Portal for Deploying Assistants', -}; - export default function RootLayout({ children, }: { @@ -51,6 +46,7 @@ export default function RootLayout({ {children} +