Skip to content

Commit

Permalink
Add google analytics (#37)
Browse files Browse the repository at this point in the history
* add next/third-party dependency

* add google analytics to layout.tsx
  • Loading branch information
irfankhan10 authored Dec 3, 2024
1 parent de6efa2 commit 86511a1
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
20 changes: 20 additions & 0 deletions landing/package-lock.json

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

3 changes: 2 additions & 1 deletion landing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"react": "^18",
"react-dom": "^18",
"react-icons": "^5.0.1",
"zod": "^3.23.8"
"zod": "^3.23.8",
"@next/third-parties": "15.0.3"
},
"devDependencies": {
"@types/node": "^20",
Expand Down
3 changes: 3 additions & 0 deletions landing/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Inter } from "next/font/google";
import { Roboto_Mono } from "next/font/google";
import "./globals.css";
import "@cqcl/quantinuum-ui/tokens.css";
import { GoogleAnalytics } from '@next/third-parties/google';

const inter = Inter({ subsets: ["latin"], variable: "--font-inter" });

const jetBrains = Roboto_Mono({
Expand Down Expand Up @@ -40,6 +42,7 @@ export default function RootLayout({
>
{children}
</body>
<GoogleAnalytics gaId="G-YPQ1FTGDL3"/>
</html>
);
}

0 comments on commit 86511a1

Please sign in to comment.