Skip to content

Commit

Permalink
chore: Add Google Tag Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Leejha committed Jul 14, 2024
1 parent 31e638c commit 13e5c38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions new-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@next/third-parties": "^14.2.5",
"@radix-ui/react-slot": "^1.1.0",
"@react-hookz/web": "^24.0.4",
"class-variance-authority": "^0.7.0",
Expand Down
3 changes: 3 additions & 0 deletions new-web/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "lib/styles/globals.css";
import { GoogleTagManager } from "@next/third-parties/google";
import { GTM_ID } from "lib/env";

const inter = Inter({ subsets: ["latin"] });

Expand All @@ -16,6 +18,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<GoogleTagManager gtmId={GTM_ID} />
<body className={inter.className}>{children}</body>
</html>
);
Expand Down

0 comments on commit 13e5c38

Please sign in to comment.