Added Analytics

This commit is contained in:
Ludoviko 2021-07-24 14:31:40 +01:00
parent 25c29c8a11
commit 75d94341c5
No known key found for this signature in database
GPG key ID: 1E66DEA3F5D623D1
4 changed files with 19 additions and 3 deletions

View file

@ -19,6 +19,11 @@ module.exports = {
source: '/watch',
destination: 'https://www.netflix.com/gb/title/81210762?s=i&trkid=13747225&vlang=en&clip=81459758',
permanent: true
},
{
source: '/gay-bible',
destination: 'https://www.goodreads.com/book/show/36256691-the-holy-bible-but-gayer',
permanent: true
}
]
}

View file

@ -11,6 +11,7 @@
"dependencies": {
"next": "11.0.1",
"next-intl": "^1.4.4",
"next-plausible": "^2.0.0",
"react": "17.0.2",
"react-dom": "17.0.2"
},

View file

@ -1,10 +1,15 @@
import '../styles/globals.css'
import type { AppProps } from 'next/app'
import {NextIntlProvider} from 'next-intl';
import PlausibleProvider from 'next-plausible';
function _App({ Component, pageProps }: AppProps) {
return <NextIntlProvider messages={pageProps.messages}>
<Component {...pageProps} />
</NextIntlProvider>
return (
<PlausibleProvider trackOutboundLinks={true} domain="vannerba.st">
<NextIntlProvider messages={pageProps.messages}>
<Component {...pageProps} />
</NextIntlProvider>
</PlausibleProvider>
)
}
export default _App

View file

@ -1987,6 +1987,11 @@ next-intl@^1.4.4:
dependencies:
use-intl "^1.4.4"
next-plausible@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/next-plausible/-/next-plausible-2.0.0.tgz#2f5536ef3945c9a516471c2d5eda68887d447d74"
integrity sha512-NaLrAK+LsnEyXz31qy9OjhXZlppp0aWUdKmBPgthrWeGPwLo7ojSWgWU2BzbbUOqi0XVoWjaMa3oNVDfVkyC5w==
next@11.0.1:
version "11.0.1"
resolved "https://registry.yarnpkg.com/next/-/next-11.0.1.tgz#b8e3914d153aaf7143cb98c09bcd3c8230eeb17a"