Add Plausible analytics

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-10-27 06:36:19 +04:00
parent a846f3cd28
commit d0fcb08e01
3 changed files with 24 additions and 15 deletions
+1
View File
@@ -34,6 +34,7 @@
"mongodb": "^3.6.9", "mongodb": "^3.6.9",
"next": "^12.2.5", "next": "^12.2.5",
"next-auth": "^4.14.0", "next-auth": "^4.14.0",
"next-plausible": "^3.6.3",
"next-pwa": "^5.6.0", "next-pwa": "^5.6.0",
"nodemailer": "^6.7.2", "nodemailer": "^6.7.2",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
+3
View File
@@ -5,6 +5,7 @@ import {createTheme, ThemeProvider} from '@mui/material/styles'
import CssBaseline from '@mui/material/CssBaseline' import CssBaseline from '@mui/material/CssBaseline'
import {SessionProvider, useSession} from 'next-auth/react' import {SessionProvider, useSession} from 'next-auth/react'
import {CacheProvider} from '@emotion/react' import {CacheProvider} from '@emotion/react'
import PlausibleProvider from 'next-plausible'
import {grey, green, red} from '@mui/material/colors' import {grey, green, red} from '@mui/material/colors'
import NProgress from 'nprogress' import NProgress from 'nprogress'
import createEmotionCache from '../lib/create-emotion-cache' import createEmotionCache from '../lib/create-emotion-cache'
@@ -101,6 +102,7 @@ export default function MyApp(props) {
}, []) }, [])
return ( return (
<PlausibleProvider domain='oki.re'>
<CacheProvider value={emotionCache}> <CacheProvider value={emotionCache}>
<ThemeProvider theme={theme}> <ThemeProvider theme={theme}>
<CssBaseline /> <CssBaseline />
@@ -116,6 +118,7 @@ export default function MyApp(props) {
</ParolesListContextProvider> </ParolesListContextProvider>
</ThemeProvider> </ThemeProvider>
</CacheProvider> </CacheProvider>
</PlausibleProvider>
) )
} }
+5
View File
@@ -6219,6 +6219,11 @@ next-auth@^4.14.0:
preact-render-to-string "^5.1.19" preact-render-to-string "^5.1.19"
uuid "^8.3.2" uuid "^8.3.2"
next-plausible@^3.6.3:
version "3.6.3"
resolved "https://registry.yarnpkg.com/next-plausible/-/next-plausible-3.6.3.tgz#964e711e015a0fc03ad772123d1a1e48c86900bd"
integrity sha512-KlpB0k/PPMq0udKOLgTcp6RAqGLiIi7956tXRD5w/gzzgVdp2i3xvnafG60Exjiz98go1Jj98n/PxD3WitKH6Q==
next-pwa@^5.6.0: next-pwa@^5.6.0:
version "5.6.0" version "5.6.0"
resolved "https://registry.yarnpkg.com/next-pwa/-/next-pwa-5.6.0.tgz#f7b1960c4fdd7be4253eb9b41b612ac773392bf4" resolved "https://registry.yarnpkg.com/next-pwa/-/next-pwa-5.6.0.tgz#f7b1960c4fdd7be4253eb9b41b612ac773392bf4"