1rem
1// layout.tsx or layout.js
2import { GoogleAnalytics } from 'funuicss'
3
4export default function RootLayout({ children }) {
5return (
6<html lang="en">
7<body>
8{children}
9<GoogleAnalytics id="G-**********" />
10</body>
11</html>
12);
13}
13 lines • 224 chars
GoogleAnalytics
The GoogleAnalytics component only requires your valid Measurement ID.
PropDescriptionValue(s)
`id`The Google Analytics measurement ID you obtained from Google (e.g., G-XXXXXXX)`string (required)`