// layout.tsx or layout.js
import { GoogleAnalytics } from 'funuicss'
export default function RootLayout({ children }) {
return (
<html lang="en">
<body>
{children}
<GoogleAnalytics id="G-**********" />
</body>
</html>
);
}GoogleAnalytics
The GoogleAnalytics component only requires your valid Measurement ID.
| Prop | Description | Value(s) |
|---|---|---|
| `id` | The Google Analytics measurement ID you obtained from Google (e.g., G-XXXXXXX) | `string (required)` |