Skip to content

Commit 2170c61

Browse files
feat: add Google Analytics tag to marketing website (#6179)
Co-authored-by: Roo Code <[email protected]>
1 parent a824557 commit 2170c61

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

apps/web-roo-code/src/app/layout.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from "react"
22
import type { Metadata } from "next"
33
import { Inter } from "next/font/google"
4+
import Script from "next/script"
45

56
import { Providers } from "@/components/providers"
67

@@ -52,6 +53,16 @@ export default function RootLayout({ children }: { children: React.ReactNode })
5253
/>
5354
</head>
5455
<body className={inter.className}>
56+
{/* Google tag (gtag.js) */}
57+
<Script src="https://www.googletagmanager.com/gtag/js?id=AW-17391954825" strategy="afterInteractive" />
58+
<Script id="google-analytics" strategy="afterInteractive">
59+
{`
60+
window.dataLayer = window.dataLayer || [];
61+
function gtag(){dataLayer.push(arguments);}
62+
gtag('js', new Date());
63+
gtag('config', 'AW-17391954825');
64+
`}
65+
</Script>
5566
<div itemScope itemType="https://schema.org/WebSite">
5667
<link itemProp="url" href="https://roocode.com" />
5768
<meta itemProp="name" content="Roo Code" />

0 commit comments

Comments
 (0)