Skip to content

Commit

Permalink
Add google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
TyHil committed Oct 14, 2024
1 parent 916db62 commit 116dcfb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"dependencies": {
"@headlessui/react": "^1.7.17",
"@next/third-parties": "^14.2.15",
"@vercel/analytics": "^1.3.1",
"calendar-link": "^2.6.0",
"clsx": "^2.0.0",
Expand Down
18 changes: 18 additions & 0 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 116dcfb

Please sign in to comment.