feat: add Google Analytics tag to marketing website (#6179)

Co-authored-by: Roo Code <roomote@roocode.com>
This commit is contained in:
roomote[bot] 2025-07-24 14:18:03 -04:00 committed by GitHub
parent a82455715c
commit 2170c61e3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,7 @@
import React from "react"
import type { Metadata } from "next"
import { Inter } from "next/font/google"
import Script from "next/script"
import { Providers } from "@/components/providers"
@ -52,6 +53,16 @@ export default function RootLayout({ children }: { children: React.ReactNode })
/>
</head>
<body className={inter.className}>
{/* Google tag (gtag.js) */}
<Script src="https://www.googletagmanager.com/gtag/js?id=AW-17391954825" strategy="afterInteractive" />
<Script id="google-analytics" strategy="afterInteractive">
{`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-17391954825');
`}
</Script>
<div itemScope itemType="https://schema.org/WebSite">
<link itemProp="url" href="https://roocode.com" />
<meta itemProp="name" content="Roo Code" />