diff --git a/website/package-lock.json b/website/package-lock.json index d880c7d93..9eb1e93d3 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -31,6 +31,7 @@ "md-attr-parser": "^1.3.0", "next": "13.0.2", "next-mdx-remote": "^4.2.0", + "next-plausible": "^3.6.5", "next-pwa": "^5.6.0", "next-sitemap": "^3.1.32", "node-fetch": "^2.6.7", @@ -8487,6 +8488,19 @@ "react-dom": ">=16.x <=18.x" } }, + "node_modules/next-plausible": { + "version": "3.6.5", + "resolved": "https://registry.npmjs.org/next-plausible/-/next-plausible-3.6.5.tgz", + "integrity": "sha512-eGsyie68xIyX+If1PSIJsgv7pkiMUm66Yt9gELl3kUvljaxoJOCwUEALGk5JHvhByGsBiRswkrGioDMthL3gfQ==", + "funding": { + "url": "https://github.com/4lejandrito/next-plausible?sponsor=1" + }, + "peerDependencies": { + "next": "^11.1.0 || ^12.0.0 || ^13.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/next-pwa": { "version": "5.6.0", "resolved": "https://registry.npmjs.org/next-pwa/-/next-pwa-5.6.0.tgz", @@ -18122,6 +18136,12 @@ "vfile-matter": "^3.0.1" } }, + "next-plausible": { + "version": "3.6.5", + "resolved": "https://registry.npmjs.org/next-plausible/-/next-plausible-3.6.5.tgz", + "integrity": "sha512-eGsyie68xIyX+If1PSIJsgv7pkiMUm66Yt9gELl3kUvljaxoJOCwUEALGk5JHvhByGsBiRswkrGioDMthL3gfQ==", + "requires": {} + }, "next-pwa": { "version": "5.6.0", "resolved": "https://registry.npmjs.org/next-pwa/-/next-pwa-5.6.0.tgz", diff --git a/website/package.json b/website/package.json index a14d1b4ea..d2a2f8231 100644 --- a/website/package.json +++ b/website/package.json @@ -35,6 +35,7 @@ "md-attr-parser": "^1.3.0", "next": "13.0.2", "next-mdx-remote": "^4.2.0", + "next-plausible": "^3.6.5", "next-pwa": "^5.6.0", "next-sitemap": "^3.1.32", "node-fetch": "^2.6.7", diff --git a/website/pages/_app.tsx b/website/pages/_app.tsx index 761cb4d08..c0cf383ed 100644 --- a/website/pages/_app.tsx +++ b/website/pages/_app.tsx @@ -1,12 +1,14 @@ import '../src/styles/layout.sass' import type { AppProps } from 'next/app' import Head from 'next/head' +import PlausibleProvider from 'next-plausible' import { MDXProvider } from '@mdx-js/react' import { remarkComponents } from '../src/remark' +import { domain } from '../meta/dynamicMeta.mjs' export default function App({ Component, pageProps }: AppProps) { return ( - <> + @@ -24,6 +26,6 @@ export default function App({ Component, pageProps }: AppProps) { - + ) }