Skip to content

Commit

Permalink
#84 Add Google Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
santthosh committed Jun 8, 2024
1 parent d8e2e02 commit a723c9c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -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,
}: {
Expand Down Expand Up @@ -51,6 +46,7 @@ export default function RootLayout({
{children}
</UserProvider>
<Analytics />
<GoogleAnalytics gaId={process.env.GOOGLE_ANALYTICS_ID} />
</Flowbite>
</body>
</html>
Expand Down

0 comments on commit a723c9c

Please sign in to comment.