Skip to content

Commit 2eb04ad

Browse files
authored
Configure analytics for docs-v2 (#174)
* Configure analytics for docs-v2 * Use next/script
1 parent c9e63ae commit 2eb04ad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs-v2/app/layout.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Provider } from "./provider";
33
import { GeistSans } from "geist/font/sans";
44
import type { ReactNode } from "react";
55
import type { Metadata, Viewport } from "next";
6+
import Script from "next/script";
67

78
export const metadata: Metadata = {
89
title: {
@@ -77,6 +78,12 @@ export default function Layout({ children }: { children: ReactNode }) {
7778
</head>
7879
<body className="flex flex-col min-h-screen">
7980
<Provider>{children}</Provider>
81+
{/* 100% privacy-first analytics */}
82+
<Script
83+
data-collect-dnt="true"
84+
async
85+
src="https://sa.portr.dev/latest.js"
86+
/>
8087
</body>
8188
</html>
8289
);

0 commit comments

Comments
 (0)