We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf18248 commit a7130e9Copy full SHA for a7130e9
src/app/layout.tsx
@@ -1,4 +1,5 @@
1
import '@/styles/globals.css';
2
+import Script from 'next/script';
3
import type { Metadata, Viewport } from 'next';
4
import { Space_Grotesk } from 'next/font/google';
5
import { Toaster } from 'react-hot-toast';
@@ -23,6 +24,11 @@ export default function RootLayout({ children }: React.PropsWithChildren) {
23
24
<ReportModal />
25
</SessionProvider>
26
<Toaster position="bottom-right" />
27
+ {process.env.NEXT_PUBLIC_ANALYTICS_WEBSITE_ID && <Script
28
+ src="https://cloud.umami.is/script.js"
29
+ data-website-id={process.env.NEXT_PUBLIC_ANALYTICS_WEBSITE_ID}
30
+ strategy="lazyOnLoad"
31
+ />}
32
</body>
33
</html>
34
);
0 commit comments