mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-25 06:46:23 +02:00
Update analytics config (#428)
This commit is contained in:
parent
1b65162ca9
commit
37f777cace
1 changed files with 5 additions and 2 deletions
|
@ -35,7 +35,7 @@ const MyApp: NextPage<AppProps> = ({ Component, pageProps }) => {
|
|||
React.useEffect(() => {
|
||||
if (process.env.NEXT_PUBLIC_ENABLE_ANALYTICS) {
|
||||
// calling inject directly to avoid having this run for self-hosted instances
|
||||
inject();
|
||||
inject({ debug: false });
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
@ -49,7 +49,10 @@ const MyApp: NextPage<AppProps> = ({ Component, pageProps }) => {
|
|||
customDomain={process.env.NEXT_PUBLIC_PLAUSIBLE_DOMAIN}
|
||||
trackOutboundLinks={true}
|
||||
selfHosted={true}
|
||||
enabled={!!process.env.NEXT_PUBLIC_PLAUSIBLE_DOMAIN}
|
||||
enabled={
|
||||
typeof window !== undefined &&
|
||||
!!process.env.NEXT_PUBLIC_PLAUSIBLE_DOMAIN
|
||||
}
|
||||
>
|
||||
<DefaultSeo
|
||||
openGraph={{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue