diff --git a/package-lock.json b/package-lock.json index 4535a1d..882e848 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,7 @@ "dependencies": { "dayjs": "^1.11.13", "next": "^14.2.13", + "next-plausible": "^3.12.2", "octokit": "^4.0.2", "react": "^18.3.1", "react-dom": "^18.3.1" @@ -3765,6 +3766,19 @@ } } }, + "node_modules/next-plausible": { + "version": "3.12.2", + "resolved": "https://registry.npmjs.org/next-plausible/-/next-plausible-3.12.2.tgz", + "integrity": "sha512-jyOYLAdwaZZR6nrzFhN9xfVjzYOG6mIQ/LLDCfdAS99ELy759cKfNxluGo+pI2Xh9cYxTFYYZGlnkyR3IPy4yg==", + "funding": { + "url": "https://github.com/4lejandrito/next-plausible?sponsor=1" + }, + "peerDependencies": { + "next": "^11.1.0 || ^12.0.0 || ^13.0.0 || ^14.0.0", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", diff --git a/package.json b/package.json index 66ab71f..5e27c05 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "dependencies": { "dayjs": "^1.11.13", "next": "^14.2.13", + "next-plausible": "^3.12.2", "octokit": "^4.0.2", "react": "^18.3.1", "react-dom": "^18.3.1" diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 00f69f8..a24deef 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -2,6 +2,7 @@ import '@/styles/globals.scss'; import type { AppProps } from 'next/app'; import Head from 'next/head'; import { Layout } from '@/components/Layout'; +import PlausibleProvider from 'next-plausible'; export default function MyApp({ Component, pageProps }: AppProps) { return ( @@ -15,6 +16,7 @@ export default function MyApp({ Component, pageProps }: AppProps) {