Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SSHOC
sshoc-marketplace-frontend
Commits
75eee3be
Commit
75eee3be
authored
Mar 09, 2021
by
Stefan Probst
Browse files
chore: don't load analytics in dev
parent
0df80e25
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pages/_document.tsx
View file @
75eee3be
...
...
@@ -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
>
/
>
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment