Just check env.googleAnalytics

parent 76134d65
Pipeline #52652898 failed with stage
in 1 minute and 6 seconds
......@@ -44,7 +44,7 @@ html(lang="en")
}
p { margin-bottom: 1em; }
if env === 'production' && env.googleAnalytics
if env.googleAnalytics
// Global site tag (gtag.js) - Google Analytics
script(async="" src=`https://www.googletagmanager.com/gtag/js?id=${env.googleAnalytics}`)
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