feat: add analytics (#27)

Reviewed-on: https://codeberg.org/nhcarrigan/portfolio/pulls/27
Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
This commit is contained in:
2024-10-15 02:55:34 +00:00
committed by Naomi the Technomancer
parent 1801749c8f
commit 28c9921777
3 changed files with 20 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import { Inter } from "next/font/google";
import "./globals.css";
import { ClientNavigation } from "@/components/navigation";
import Script from "next/script";
import PlausibleProvider from "next-plausible";
const inter = Inter({ subsets: ["latin"] });
@ -27,6 +28,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<PlausibleProvider domain="nhcarrigan.com" customDomain="analytics.nhcarrigan.com" trackFileDownloads={true} trackOutboundLinks={true}>
<link rel="icon" href="https://cdn.nhcarrigan.com/logo.png" sizes="any" />
<body className={inter.className}>
<header>
@ -50,6 +52,7 @@ export default function RootLayout({
defer
src="//js.hs-scripts.com/47086586.js"
></Script>
</PlausibleProvider>
</html>
);
}