Skip to content

Commit

Permalink
Added plausible analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
bring-shrubbery committed Sep 22, 2024
1 parent 4259342 commit d489837
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 9 deletions.
11 changes: 7 additions & 4 deletions apps/web/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import "./prismjs-atom-one-dark.css";
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import Script from "next/script";
import PlausibleProvider from "next-plausible";

const inter = Inter({
subsets: ["latin"],
Expand Down Expand Up @@ -61,11 +62,13 @@ export default function RootLayout({
return (
<html lang="en" suppressHydrationWarning>
<body className={inter.className}>
{children}
<PlausibleProvider domain="squircle.js.org">
{children}

<Toaster />
<SquircleNoScript />
<SpeedInsights />
<Toaster />
<SquircleNoScript />
<SpeedInsights />
</PlausibleProvider>

<Script
async
Expand Down
3 changes: 2 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"jotai": "^2.9.2",
"lucide-react": "^0.417.0",
"next": "^14.2.5",
"next-plausible": "^3.12.2",
"prism-react-renderer": "^2.3.1",
"prismjs": "^1.29.0",
"react": "^18.3.1",
Expand All @@ -73,7 +74,7 @@
"eslint": "catalog:",
"jiti": "^1.21.6",
"prettier": "catalog:",
"tailwindcss": "^3.4.4",
"tailwindcss": "^3.4.9",
"typescript": "catalog:"
}
}
24 changes: 20 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d489837

Please sign in to comment.