Analytics
Collect the basic analytics with a privacy focused analytics tool
Last updated
import Script from "next/script"
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<head>
/* ... */
<Script src="/simple-analytics.js" />
<noscript>
<img
src="/simple-analytics-noscript.gif"
alt=""
referrerPolicy="no-referrer-when-downgrade"
/>
</noscript>
</head>
<body className={inter.className}>
<Providers>{children}</Providers>
</body>
</html>
);
}async rewrites() {
return [
{
source: "/simple-analytics.js",
destination: "https://scripts.simpleanalyticscdn.com/latest.js",
},
{
source: "/simple-analytics-noscript.gif",
destination: "https://queue.simpleanalyticscdn.com/noscript.gif",
},
];
},