Created
October 17, 2025 11:02
-
-
Save sitefinitySDK/f7d0ccff6b9c0adbfd5851fffc30b374 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ```tsx | |
| import { GoogleTagManager } from '@next/third-parties/google' | |
| export default function RootLayout({ | |
| children, | |
| }: { | |
| children: React.ReactNode | |
| }) { | |
| return ( | |
| <html lang="en"> | |
| <!--- replace "GTM-XYZ" with your GTM container ID--> | |
| <GoogleTagManager gtmId="GTM-XYZ" /> | |
| <body>{children}</body> | |
| </html> | |
| ) | |
| } | |
| ``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment