Skip to content

Commit 9cc5721

Browse files
authored
Merge pull request #1 from chainsquad/add-plausible-analytics
Add Plausible analytics tracking script
2 parents 769c490 + 0bc0a12 commit 9cc5721

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/app/layout.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { Metadata } from "next";
22
import "./globals.css";
33
import { Inter, Roboto_Mono } from "next/font/google";
4+
import Script from "next/script";
45

56
const inter = Inter({ subsets: ["latin"], variable: "--font-inter" });
67
const robotoMono = Roboto_Mono({
@@ -29,7 +30,14 @@ export default function RootLayout({
2930
}) {
3031
return (
3132
<html lang="en" className={`${inter.variable} ${robotoMono.variable}`}>
32-
<body className="antialiased">{children}</body>
33+
<body className="antialiased">
34+
{children}
35+
<Script
36+
defer
37+
data-domain="chainsquad.com"
38+
src="https://p.chainsquad.com/js/script.js"
39+
/>
40+
</body>
3341
</html>
3442
);
3543
}

0 commit comments

Comments
 (0)