Skip to content

Commit

Permalink
📈 add Umami analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
ld-web committed Nov 12, 2024
1 parent 10a8e1c commit a302ff7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Raleway } from "next/font/google";
import "./globals.css";
import { ThemeProvider } from "next-themes";
import GithubIcon from "@/components/utils/GithubIcon";
import { Analytics } from "@vercel/analytics/react";
import Script from "next/script";

const inter = Raleway({ subsets: ["latin"] });

Expand All @@ -19,6 +19,14 @@ export default function RootLayout({
}>) {
return (
<html lang="en" suppressHydrationWarning>
<head>
<Script
defer
src="https://analytics.ld-web.net/script.js"
data-website-id="4bece9ed-b081-4b4c-a4f5-9936dfbb9935"
strategy="beforeInteractive"
/>
</head>
<body
className={`${inter.className} text-gray-900 dark:bg-slate-800 dark:text-gray-200 px-2 pb-10`}
>
Expand All @@ -31,7 +39,6 @@ export default function RootLayout({
</a>
</footer>
</ThemeProvider>
<Analytics />
</body>
</html>
);
Expand Down

0 comments on commit a302ff7

Please sign in to comment.