mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
feat: add Google Analytics tag to marketing website (#6179)
Co-authored-by: Roo Code <roomote@roocode.com>
This commit is contained in:
parent
a82455715c
commit
2170c61e3c
1 changed files with 11 additions and 0 deletions
|
|
@ -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" />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue