Skip to content

Commit

Permalink
Merge pull request #328 from Kitware/fix-dev-noga
Browse files Browse the repository at this point in the history
fix(index.html): guard GA against non-prod builds
  • Loading branch information
floryst authored May 2, 2020
2 parents 181768c + c12c5b1 commit 0706cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<% for (key in htmlWebpackPlugin.files.css) { %>
<link inline type="text/css" rel="stylesheet" href="<%= htmlWebpackPlugin.files.css[key] %>" />
<% } %>
<% if (googleAnalytics) { %>
<% if (webpackConfig.mode === 'production' && googleAnalytics) { %>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-90338862-10"></script>
<script>
Expand Down

0 comments on commit 0706cb7

Please sign in to comment.