<!DOCTYPE html>
<html lang="en">
  <head>
    <% if (process.env.NODE_ENV === 'production') { %>
    <!-- Lodash templates are available by default for html-webpack-plugin -->
    <!-- Example usages here https://learn.co/lessons/javascript-lodash-templates -->
    <!-- Global site tag (gtag.js) - Google Analytics, but only in production -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-116965240-1"></script>
    <script>
      if (process.env.NODE_ENV === 'production') {
        window.dataLayer = window.dataLayer || []
        function gtag () { dataLayer.push(arguments) }
        gtag('js', new Date())

        gtag('config', 'UA-116965240-1')
      }
    </script>
    <% } %>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="google-site-verification" content="iLduelR9qGqpKOdqZ8y3vDet-8w5mTocNhPKmF0m9NM" />
    <title>Parcel</title>
    <link href="https://fonts.googleapis.com/css?family=Merriweather|Source+Sans+Pro" rel="stylesheet">
    <link rel="icon" type="image/png" href="/static/img/favicon.png">
  </head>
  <body>
    <div id="app"></div>
  </body>
</html>

<!DOCTYPE html>
<html lang="en">
  <head>
    <% if (process.env.NODE_ENV === 'production') { %>
    <!-- Lodash templates are available by default for html-webpack-plugin -->
    <!-- Example usages here https://learn.co/lessons/javascript-lodash-templates -->
    <!-- Global site tag (gtag.js) - Google Analytics, but only in production -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-116965240-1"></script>
    <script>
      window.dataLayer = window.dataLayer || []
      function gtag () { dataLayer.push(arguments) }
      gtag('js', new Date())

      gtag('config', 'UA-116965240-1')
    </script>
    <% } %>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="google-site-verification" content="iLduelR9qGqpKOdqZ8y3vDet-8w5mTocNhPKmF0m9NM" />
    <title>Parcel</title>
    <link href="https://fonts.googleapis.com/css?family=Merriweather|Source+Sans+Pro" rel="stylesheet">
    <link rel="icon" type="image/png" href="/static/img/favicon.png">
  </head>
  <body>
    <div id="app"></div>
  </body>
</html>

Remove extra environment check to fix Google Analytics
Remove extra environment check to fix Google Analytics
