Skip to content

Commit

Permalink
fix: integrate google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
asafkorem committed Nov 4, 2024
1 parent e4e34a3 commit 5705ff0
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
20 changes: 20 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"serve": "npx serve out"
},
"dependencies": {
"@next/third-parties": "^15.0.2",
"@radix-ui/react-select": "^2.1.2",
"@radix-ui/react-slot": "^1.1.0",
"class-variance-authority": "^0.7.0",
Expand Down
14 changes: 9 additions & 5 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
import localFont from "next/font/local";
import { GoogleAnalytics } from '@next/third-parties/google'
import "./globals.css";

const geistSans = localFont({
Expand All @@ -14,23 +15,26 @@ const geistMono = localFont({
weight: "100 900",
});

const GA_MEASUREMENT_ID = 'G-NFEVN0VVSF';

export const metadata: Metadata = {
title: "Git Spotlight",
description: "Spot pain points in your code through git history",
};

export default function RootLayout({
children,
}: Readonly<{
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
{children}
{children}
</body>
</html>
<GoogleAnalytics id={GA_MEASUREMENT_ID} />
</html>
);
}

0 comments on commit 5705ff0

Please sign in to comment.