mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-29 00:36:22 +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(() => {
|
React.useEffect(() => {
|
||||||
if (process.env.NEXT_PUBLIC_ENABLE_ANALYTICS) {
|
if (process.env.NEXT_PUBLIC_ENABLE_ANALYTICS) {
|
||||||
// calling inject directly to avoid having this run for self-hosted instances
|
// 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}
|
customDomain={process.env.NEXT_PUBLIC_PLAUSIBLE_DOMAIN}
|
||||||
trackOutboundLinks={true}
|
trackOutboundLinks={true}
|
||||||
selfHosted={true}
|
selfHosted={true}
|
||||||
enabled={!!process.env.NEXT_PUBLIC_PLAUSIBLE_DOMAIN}
|
enabled={
|
||||||
|
typeof window !== undefined &&
|
||||||
|
!!process.env.NEXT_PUBLIC_PLAUSIBLE_DOMAIN
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<DefaultSeo
|
<DefaultSeo
|
||||||
openGraph={{
|
openGraph={{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue