Skip to content

Commit 6b2c4f0

Browse files
authored
feat: add GTM to checkout playground (#5)
1 parent 88db8c5 commit 6b2c4f0

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

package-lock.json

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@hookform/resolvers": "^3.9.0",
13+
"@next/third-parties": "^14.2.7",
1314
"@radix-ui/react-dialog": "^1.1.1",
1415
"@radix-ui/react-label": "^2.1.0",
1516
"@radix-ui/react-popover": "^1.1.1",

src/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
TooltipTrigger,
1212
} from "@/components/ui/tooltip";
1313
import Link from "next/link";
14+
import { GoogleTagManager } from "@next/third-parties/google";
1415

1516
const montserrat = Montserrat({ subsets: ["latin"] });
1617

@@ -73,6 +74,7 @@ export default function RootLayout({
7374
</div>
7475
</TooltipProvider>
7576
</body>
77+
<GoogleTagManager gtmId={process.env.NEXT_PUBLIC_GTM_ID as string} />
7678
</html>
7779
);
7880
}

0 commit comments

Comments
 (0)