Commit 75eee3be authored by Stefan Probst's avatar Stefan Probst
Browse files

chore: don't load analytics in dev

parent 0df80e25
......@@ -52,6 +52,7 @@ export default class Document extends NextDocument {
*/
function Matomo() {
if (
process.env.NODE_ENV !== 'production' ||
process.env.NEXT_PUBLIC_MATOMO_BASE_URL === undefined ||
process.env.NEXT_PUBLIC_MATOMO_SITE_ID === undefined
) {
......@@ -81,6 +82,6 @@ function Matomo() {
s.parentNode.insertBefore(g, s)
})()`,
}}
></script>
/>
)
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment