Skip to content

Commit

Permalink
chore: add gtag
Browse files Browse the repository at this point in the history
Signed-off-by: Neha Gupta <[email protected]>
  • Loading branch information
nehagup committed Jul 5, 2024
1 parent 67e4d62 commit 523e001
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,19 @@ export default function RootLayout({ children, metadata }: RootLayoutProps) {
}}
/>
<script type="text/javascript" id="hs-script-loader" async defer src="//js-na1.hs-scripts.com/43912677.js"></script>
<script
dangerouslySetInnerHTML={{
__html: `
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-P7DBR4PH');
`,
}}
/>
</head>
<body className={`${inter.variable} font-inter antialiased bg-white text-gray-900 tracking-tight`}>
<noscript>
</noscript>
<div className="flex flex-col overflow-hidden supports-[overflow:clip]:overflow-clip">
<Header />
{children}
Expand Down

0 comments on commit 523e001

Please sign in to comment.