|
|
@@ -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" />
|