Skip to content

Commit

Permalink
Step 1: Installing and configuring Plausible
Browse files Browse the repository at this point in the history
  • Loading branch information
colbyfayock committed Apr 12, 2024
1 parent 417ac4e commit 1be9b6f
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 5 deletions.
4 changes: 4 additions & 0 deletions app/layout.tsx
@@ -1,6 +1,7 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import PlausibleProvider from "next-plausible";

const inter = Inter({ subsets: ["latin"] });

Expand All @@ -16,6 +17,9 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<head>
<PlausibleProvider domain="my-plausible-analytics.vercel.app" />
</head>
<body className={inter.className}>{children}</body>
</html>
);
Expand Down
29 changes: 29 additions & 0 deletions package-lock.json

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

11 changes: 6 additions & 5 deletions package.json
Expand Up @@ -9,18 +9,19 @@
"lint": "next lint"
},
"dependencies": {
"next": "14.2.0",
"next-plausible": "^3.12.0",
"react": "^18",
"react-dom": "^18",
"next": "14.2.0"
"react-dom": "^18"
},
"devDependencies": {
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.0",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"eslint": "^8",
"eslint-config-next": "14.2.0"
"typescript": "^5"
}
}

0 comments on commit 1be9b6f

Please sign in to comment.