generated from nhcarrigan/template
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:
@ -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>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user