Skip to content

Commit 105a002

Browse files
authored
Merge pull request #204 from afrinxnahar/SEO-AEO-GEO-optimization
add gtag
2 parents 1dfdbb5 + b4fbb9c commit 105a002

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

apps/web/app/layout.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,18 @@ export default function RootLayout({
8787
<Script src="https://lmsqueezy.com/affiliate.js" strategy="afterInteractive" />
8888
</>
8989
)}
90+
<Script
91+
src="https://www.googletagmanager.com/gtag/js?id=G-RVSYKESCPC"
92+
strategy="afterInteractive"
93+
/>
94+
<Script id="google-analytics" strategy="afterInteractive">
95+
{`
96+
window.dataLayer = window.dataLayer || [];
97+
function gtag(){dataLayer.push(arguments);}
98+
gtag('js', new Date());
99+
gtag('config', 'G-RVSYKESCPC');
100+
`}
101+
</Script>
90102
<SpeedInsights />
91103
<Analytics />
92104
</body>

0 commit comments

Comments
 (0)