add plausable

This commit is contained in:
saml33 2023-11-22 21:38:59 +11:00
parent 829468c619
commit 1dd277495a
3 changed files with 17 additions and 7 deletions

View File

@ -31,6 +31,7 @@
"immer": "^9.0.1",
"next": "latest",
"next-i18next": "^13.1.5",
"next-plausible": "^3.11.3",
"next-themes": "^0.0.14",
"react": "^18.2.0",
"react-dom": "^18.2.0",

View File

@ -4,6 +4,7 @@ import '../styles/index.css'
import LayoutWrapper from '../components/layout/LayoutWrapper'
import { appWithTranslation } from 'next-i18next'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import PlausibleProvider from 'next-plausible'
const metaTitle = 'Mango Markets Safer. Smarter. Faster.'
const metaDescription =
@ -29,10 +30,6 @@ function App({ Component, pageProps }) {
<Head>
<title>Mango Markets</title>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap"
rel="stylesheet"
/>
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="keywords" content={keywords} />
@ -51,9 +48,16 @@ function App({ Component, pageProps }) {
</Head>
<QueryClientProvider client={queryClient}>
<ThemeProvider defaultTheme="Mango">
<LayoutWrapper>
<Component {...pageProps} />
</LayoutWrapper>
<PlausibleProvider
domain="mango.markets"
customDomain="https://pl.mngo.cloud"
selfHosted={true}
trackOutboundLinks={true}
>
<LayoutWrapper>
<Component {...pageProps} />
</LayoutWrapper>
</PlausibleProvider>
</ThemeProvider>
</QueryClientProvider>
</>

View File

@ -4322,6 +4322,11 @@ next-i18next@^13.1.5:
hoist-non-react-statics "^3.3.2"
i18next-fs-backend "^2.1.1"
next-plausible@^3.11.3:
version "3.11.3"
resolved "https://registry.yarnpkg.com/next-plausible/-/next-plausible-3.11.3.tgz#387d2039b66f17f8f704027b2572a0e84e58eee7"
integrity sha512-2dpG58ryxdsr4ZI8whWQpGv0T6foRDPGiehcICpDhYfmMJmluewswQgfDA8Z37RFMXAY+6SHOPS7Xi+9ewNi2Q==
next-themes@^0.0.14:
version "0.0.14"
resolved "https://registry.yarnpkg.com/next-themes/-/next-themes-0.0.14.tgz#2b9861990bc453149e23d8e6ef1a25a119e36675"