Skip to content

Commit 8475e48

Browse files
authored
feat(changelog): Add next-plausible (#12368)
1 parent 5d6f457 commit 8475e48

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

apps/changelog/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"next": "15.1.2",
3030
"next-auth": "^4.24.5",
3131
"next-mdx-remote": "^4.4.1",
32+
"next-plausible": "^3.12.4",
3233
"nextjs-toploader": "^1.6.6",
3334
"nuqs": "^1.17.7",
3435
"prism-sentry": "^1.0.2",
@@ -66,4 +67,4 @@
6667
"@types/react": "npm:[email protected]",
6768
"@types/react-dom": "npm:[email protected]"
6869
}
69-
}
70+
}

apps/changelog/src/app/layout.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {Theme} from '@radix-ui/themes';
44
import type {Metadata} from 'next';
55
import {Rubik} from 'next/font/google';
66
import Script from 'next/script';
7+
import PlausibleProvider from 'next-plausible';
78

89
const rubik = Rubik({
910
weight: ['400', '500', '700'],
@@ -33,17 +34,14 @@ export const metadata: Metadata = {
3334
export default function RootLayout({children}: {children: React.ReactNode}) {
3435
return (
3536
<html lang="en">
37+
<head>
38+
<PlausibleProvider domain="changelog.sentry.io" />
39+
</head>
3640
<body className={`${rubik.variable}`}>
3741
<Theme accentColor="iris" grayColor="sand" radius="large" scaling="95%">
3842
{children}
3943
</Theme>
4044
</body>
41-
<Script
42-
defer
43-
data-domain="docs.sentry.io,rollup.sentry.io"
44-
data-api="https://plausible.io/api/event"
45-
src="https://plausible.io/js/script.tagged-events.js"
46-
/>
4745
</html>
4846
);
4947
}

0 commit comments

Comments
 (0)