Skip to content

Commit

Permalink
Merge pull request #67 from UTDNebula/google-analytics
Browse files Browse the repository at this point in the history
Add google analytics
  • Loading branch information
TyHil authored Oct 24, 2024
2 parents ff6743f + 787448f commit 92cf755
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 26 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@headlessui/react": "^2.1.10",
"@vercel/analytics": "^1.3.1",
"@next/third-parties": "^15.0.1",
"calendar-link": "^2.7.0",
"clsx": "^2.1.1",
"google-auth-library": "^9.14.2",
Expand Down
41 changes: 18 additions & 23 deletions pnpm-lock.yaml

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

4 changes: 2 additions & 2 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import localFont from 'next/font/local';
import { Inter } from 'next/font/google';
import '@/styles/globals.css';
import type { AppProps } from 'next/app';
import { Analytics } from '@vercel/analytics/react';
import { GoogleAnalytics } from '@next/third-parties/google';

const inter = Inter({ subsets: ['latin'] });
const kallisto = localFont({
Expand Down Expand Up @@ -81,7 +81,7 @@ export default function App({ Component, pageProps }: AppProps) {
`}
</style>
<Component {...pageProps} />
<Analytics />
<GoogleAnalytics gaId="G-Q74JGS7ZPP" />
</>
);
}

0 comments on commit 92cf755

Please sign in to comment.