diff options
| author | Sebastien Castiel <sebastien@castiel.me> | 2023-12-11 11:54:24 -0500 |
|---|---|---|
| committer | Sebastien Castiel <sebastien@castiel.me> | 2023-12-11 11:54:24 -0500 |
| commit | 4f43e8e42a17861855226757d3e825e3ff761018 (patch) | |
| tree | 75b3a9046f8d4cbc4bda0d567df58066c8758ea2 /src/app/layout.tsx | |
| parent | 9f7ea9ca5066322db3e1697cc1d7102fe574aebb (diff) | |
Add Plausible
Diffstat (limited to 'src/app/layout.tsx')
| -rw-r--r-- | src/app/layout.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 2560871..c54da20 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -4,6 +4,7 @@ import { ThemeToggle } from '@/components/theme-toggle' import { Button } from '@/components/ui/button' import { env } from '@/lib/env' import type { Metadata, Viewport } from 'next' +import PlausibleProvider from 'next-plausible' import Image from 'next/image' import Link from 'next/link' import './globals.css' @@ -63,6 +64,9 @@ export default function RootLayout({ }) { return ( <html lang="en" suppressHydrationWarning> + {env.PLAUSIBLE_DOMAIN && ( + <PlausibleProvider domain={env.PLAUSIBLE_DOMAIN} trackOutboundLinks /> + )} <body className="pt-16 min-h-[100dvh] flex flex-col items-stretch"> <ThemeProvider attribute="class" |
